effects
Apply a visual effect to an image and save the altered copy to a new file. Choose from greyscale, sepia, invert, blur, sharpen, contrast, or brightness. Returns the output path and effect applied.
Instructions
Apply a single visual effect and write the result to a NEW file (source unchanged). Effects: greyscale, sepia, invert, blur (uses 'radius'), sharpen, contrast (uses 'factor'), brightness (uses 'factor'). Returns the output path and the effect applied. Unknown effect names raise an error.
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": {
"path": "<path>",
"out": "<out>",
"effect": "<effect>"
},
"name": "effects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | Yes | Output image path. A new file is created; the source is left untouched. | |
| path | Yes | Source image path. | |
| effect | Yes | One of: greyscale, sepia, invert, blur, sharpen, contrast, brightness. | |
| factor | No | Intensity multiplier for contrast/brightness (e.g. 1.3 = brighter, 0.8 = darker; defaults apply if omitted). | |
| radius | No | Blur radius in pixels (used only by the blur effect; default 2). |