edit_image
Modify an existing image using a text prompt, with optional preview of the generated output.
Instructions
Edit an existing image based on a text prompt
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": {
"prompt": "<prompt>",
"file": "<file>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The filename of the input image to edit | |
| prompt | Yes | The text prompt describing the edits to make | |
| preview | No | Automatically open generated images in default viewer |