Continue Editing
continue_editingRefine the last image you generated or edited with a new prompt to adjust details, then receive the file path of the saved result.
Instructions
Refine the last generated or edited image with a new prompt. Must call generate_image or edit_image first. Returns the file path of the saved result.
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>"
},
"name": "continue_editing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model ID to use. Options: gemini-3.1-flash-image-preview (default), gemini-2.5-flash-image, gemini-3-pro-image-preview | |
| prompt | Yes | Instructions for refining the last generated or edited image, e.g. "make the colors more vibrant" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model ID that was used | |
| filePath | Yes | Absolute path where the refined image was saved | |
| sizeBytes | Yes | Size of the refined image in bytes |