edit_image
Edit a previously generated image by its img_… id with a natural-language instruction.
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": "<image>",
"instruction": "<instruction>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | img_… id of a previous generation | |
| model | No | nano-banana-2 | |
| overlay | No | ||
| resolution | No | Output tier; defaults to the source image's | |
| instruction | Yes | What to change | |
| aspect_ratio | No | Omit to keep the source image's shape. If set, it is per-model — see list_models. |