paint_filter
Apply blur, channel-shift, noise, relief, levels, threshold, invert, and hue/saturation filters to a selected raster layer while honoring alpha lock and selection bounds.
Instructions
Filter a raster layer within the selection, honouring alpha lock (with alpha_lock a blur stays inside the shape). blur: premultiplied Gaussian radius 0..250 (glow: duplicate layer, blur, blend screen/add; soft shadows). channel_shift: offsets {r:[dx,dy],g:[..],b:[..]} whole pixels (chromatic aberration, misregistration). noise: amount 0..1 seeded grain, monochrome or per-channel. relief: emboss lighting, amount 0..1 strength, radius softness, angle = light direction (135 = upper left), source luminance (brushwork, impasto) or alpha (cut paper, foil), depth 0.1..50 multiplies slopes (4..20 for gentle painted height maps). levels: black/white input points 0..255 and gamma (>1 lightens midtones). threshold: level 0..255, black-and-white by luminance (photocopy, stencil). invert: colour negative. hue_saturation: hue degrees, saturation factor 0..4, lightness -1..1. Colour filters keep alpha. For the whole picture use paint_layer(stamp_visible) first.
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": {
"kind": "<kind>"
},
"name": "paint_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hue | No | ||
| kind | Yes | ||
| seed | No | ||
| angle | No | ||
| black | No | ||
| depth | No | ||
| gamma | No | ||
| level | No | ||
| white | No | ||
| amount | No | ||
| radius | No | ||
| source | No | luminance | |
| offsets | No | ||
| layer_id | No | Target layer id or unique layer name; the active layer stays unchanged. Default: active layer | |
| lightness | No | ||
| monochrome | No | ||
| saturation | No | ||
| document_id | No | Target this document instead of the shared active one (recommended when several agents share the server) |