View as Markdown
FileStack icon

FileStack ACTION

Resize Image

Resizes an uploaded image to specified width and height. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's FileStack account once, then configure and run Resize Image from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "filestack-resize-image",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    filestack: { authProvisionId: "apn_xxxxxxx" },
    uploadedImageUrl: "Uploaded Image URL",
    outputFilename: "Output File Name",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Resize Image inputs
Property Type Description
uploadedImageUrl Uploaded Image URL string
The URL of an image uploaded to FileStack (you can use the Upload Image action). Example: https://cdn.filestackcontent.com/pdn7PhZdT02GoYZCVYeF
Required
outputFilename Output File Name string
If specified, the resulting image will be written to this filename in the tmp folder; otherwise, the raw data will be returned
Optional
width Width integer
The width to resize the image to, in pixels.
Required
height Height integer
The height to resize the image to, in pixels.
Required
mode Mode string
The possible methods by which the image should fit the specified dimensions.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
filestack-resize-image
Version
0.0.2
App
FileStack
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes