Edit Image with Gemini
edit_imageEdit images by providing natural-language instructions. Returns edited image with preview and saves full-resolution to disk.
Instructions
Edit one or more images using Google Gemini image models (Nano Banana Pro). Provide images and natural-language instructions for how to modify them. Returns edited image with inline preview and saves full-resolution to disk.
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>",
"images": "<images>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Instructions for how to edit the image(s) | |
| images | Yes | One or more images to edit | |
| model | No | Gemini image model to use (default: gemini-3-pro-image-preview) | |
| use_search | No | Enable Google Search grounding for data-driven editing | |
| global_media_resolution | No | Global image quality setting (default: HIGH). See generate_image for details. | |
| outputPath | No | Optional file path to save the edited image (e.g., ./output/edited.png) |