edit_image
Edit an existing image by providing its file path and text instructions. Optionally include reference images to guide style and content.
Instructions
Edit an existing image based on text instructions. Provide the file path of the image to modify.
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": {
"imagePath": "<imagePath>",
"prompt": "<prompt>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imagePath | Yes | Absolute file path to the image to edit | |
| prompt | Yes | Instructions for how to edit the image | |
| referenceImages | No | Optional array of file paths to reference images for style or content guidance | |
| model | No | Optional model override for this request | |
| quality | No | Model tier: "high" (best quality, default) or "fast" (cheaper/faster) |