edit_image
Edit a local image with a text prompt while preserving the original; save the modified result as a new file in an authorized output directory.
Instructions
Edita uma imagem local usando input_references do endpoint /images. A origem permanece intacta e a imagem editada é guardada como novo recurso.
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 |
|---|---|---|---|
| size | No | ||
| model | No | ||
| prompt | Yes | ||
| dry_run | No | ||
| filename | No | ||
| allow_paid | No | ||
| output_dir | No | ||
| resolution | No | ||
| aspect_ratio | No | ||
| max_cost_usd | No | ||
| input_image_path | Yes |