Apply filters
filterApply chained image effects such as blur, color, lighting, shadow, and distortion to a layer or selection, with optional opacity blending to the original.
Instructions
Apply one or more filters in sequence to a layer (confined to the selection if any; opacity < 1 blends with the original). Filters & params:
blur: radius (px, gaussian sigma, default 4)
motion_blur: angle (deg), distance (px, default 20)
zoom_blur: cx, cy (doc px, default region center), amount (0..1, default 0.15)
sharpen: amount (default 0.8), radius (default 1.5)
noise: amount (0..1, default 0.1), mono (bool, default true), seed
hue_saturation: hue (deg shift), saturation (-100..100), lightness (-100..100)
brightness_contrast: brightness (-100..100), contrast (-100..100)
exposure: ev (stops, e.g. 0.5 or -0.7), gamma (default 1)
levels: inBlack (0), inWhite (255), gamma (1), outBlack (0), outWhite (255)
curves: points [[in,out],...] 0-255 (monotone spline), channel: rgb|r|g|b
color_balance: shadows/midtones/highlights: [r,g,b] each -100..100 (cyan-red, magenta-green, yellow-blue)
colorize: hue (deg), saturation (0..100, default 50), lightness (-100..100)
color_overlay: color, opacity (0..1), blend (normal, multiply, screen, overlay, color, soft-light...)
vibrance: amount (-100..100)
invert: -
grayscale: -
sepia: amount (0..1, default 1)
posterize: levels (2..32, default 5)
threshold: level (0..255, default 128), colors? [dark, light]
gradient_map: stops: ["#000", "#f80", "#fff"] mapped from shadows to highlights
pixelate: size (px, default 8)
glow: radius (default 12), intensity (default 1), threshold (0..255 luminance, default 0 = everything glows), color (optional tint), mode: halo (default: glow around, subject unchanged) | add (additive bloom over the subject; alias type "bloom")
drop_shadow: dx, dy (default 6), blur (default 8), color (default #000), opacity (default 0.5)
outline: width (px, default 3), color (default #000), opacity (default 1)
warp: mode: wave|ripple|twirl|pinch|bulge|noise; amplitude (px), wavelength (px), angle, cx, cy, radius, strength, seed
kuwahara: radius (default 4) — painterly smoothing (alias oil_paint)
vignette: strength (0..1, default 0.5), radius (0..1, default 0.75 of half-diagonal), color (default #000)
chromatic_aberration: amount (px, default 4), angle (deg)
emboss: angle (deg, default 135), strength (default 1), mix (0..1 blend with original, default 1)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filters": "<filters>"
},
"name": "filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edge | No | Edge handling for blurs (auto: extend if the layer is opaque at the borders) | |
| layer | No | Layer id, name, or index (0 = bottom, -1 = top). Default: the active layer. | |
| target | No | ||
| filters | Yes | e.g. [{type:"blur", radius:6}, {type:"hue_saturation", saturation:20}] | |
| opacity | No | Blend result with original (0..1, default 1) |