edit_image
Modify existing images using natural language instructions to add, remove, or change elements, backgrounds, and styles, or to enhance and retouch photos.
Instructions
Edit existing images using natural language instructions.
Use this when:
Modifying an existing image
Adding or removing elements from a photo
Changing backgrounds or styles
Enhancing or retouching images
NOT for:
Creating new images from scratch (use generate_image instead)
Format conversion without AI changes (use convert_image instead)
Example: "Remove the background from this product photo"
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": {
"editPrompt": "<editPrompt>",
"preserveStyle": "<preserveStyle>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | No | ||
| editPrompt | Yes | ||
| inputImage | No | ||
| aspectRatio | No | ||
| preserveStyle | Yes | ||
| inputImagePath | No | ||
| inputImageMimeType | No |