image_edit
Edit or inpaint images by providing a reference image, a text prompt, and an output location. Supports optional mask for targeted edits.
Instructions
Edit or inpaint an image and write the result to the output reference.
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_ref": "<image_ref>",
"prompt": "<prompt>",
"output_ref": "<output_ref>"
},
"name": "image_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_ref | Yes | ||
| prompt | Yes | ||
| output_ref | Yes | ||
| mask_ref | No | ||
| format | No | ||
| size | No | ||
| overwrite | No | ||
| model | No | ||
| output_headers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||