blur_background
Blur an image background while keeping the subject sharp to create portrait-style bokeh, with adjustable blur strength and optional output path.
Instructions
Keep the subject sharp and blur the background (portrait-style bokeh).
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": {
"image_path": "<image_path>"
},
"name": "blur_background"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| radius | No | Blur strength, 1-50. | |
| image_path | Yes | Path to a local JPG, PNG, WEBP, BMP or GIF image (1 KB to 10 MB). | |
| output_path | No | Where to save the result. Defaults to '<name>_<operation>.<ext>' next to the input image. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |