View as Markdown
FileStack icon

FileStack ACTION

Filter Image

Applies filters such as sharpening, blurring, sepia, monochrome, and more, to an uploaded image. 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 Filter 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-filter-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.

Filter 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
sharpenAmount Sharpen integer
Sharpen amount to apply to the image.
Optional
blurAmount Blur integer
Blur amount to apply to the image.
Optional
monochrome Monochrome boolean
If true, converts the image to monochrome.
Optional
blackAndWhite Black and White integer
Black and white threshold to apply to the image.
Optional
sepia Sepia integer
Sepia tone to apply to the image.
Optional
pixelate Pixelate integer
Pixelate amount to apply to the image.
Optional
oilPaint Oil Paint integer
Oil paint amount to apply to the image.
Optional
negative Negative boolean
If true, creates a negative image by portraying the lightest area as the darkest and the darkest areas as the lightest.
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-filter-image
Version
0.0.2
App
FileStack
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes