edit_image
Transform existing images with text prompts and reference images from local paths, URLs, or data URIs, applying style, size, and aspect ratio presets to produce saved output.
Instructions
Edit or transform existing images using a text prompt and reference images. Supports local file paths, URLs, and data URIs. For best results, expand brief prompts with details about composition, lighting, color palette, and mood before calling — unless the user explicitly asked for a simple/minimal 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>",
"images": "<images>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model ID (defaults to Gemini 3 Pro Image Preview) | |
| style | No | Visual style preset to prepend to the prompt | |
| images | Yes | Reference images: local file paths, HTTP URLs, or data URIs | |
| prompt | Yes | What to do with the image(s) | |
| image_size | No | Output image size | |
| output_path | No | Optional path to save the result. Can be a full file path or a directory (auto-names the file) | |
| aspect_ratio | No | Output aspect ratio |