Edit Image
edit_imageModify an existing image by describing desired changes in a text prompt, then save the result as PNG, JPEG, or WebP.
Instructions
Edit an existing image using 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>",
"input_image_path": "<input_image_path>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model override. Default "gemini-nano-banana-2.1"; "gemini-3-pro-image" is best for complex multi-turn edits. | |
| prompt | Yes | Description of the desired changes | |
| temperature | No | Creativity level 0.0-2.0 | |
| output_format | No | File format: "png", "jpeg", or "webp" | png |
| output_filename | No | Custom filename for edited image (optional) | |
| input_image_path | Yes | Path to the image to edit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||