agnes_image_edit
Edit or compose images with text prompts and reference images, using URLs or local files. Supports multi-image composition and masking for targeted edits.
Instructions
Edit or compose images through Agnes img2img using URLs or local files.
Uses agnes-image-2.1-flash by default. Pass image_paths as public URLs or local file paths. Multiple images enable multi-image composition.
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>",
"image_paths": "<image_paths>"
},
"name": "agnes_image_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | 1024x1024 | |
| ratio | No | ||
| prompt | Yes | ||
| mask_path | No | ||
| extra_body | No | ||
| image_paths | Yes | ||
| return_base64 | No | ||
| output_filename | No | ||
| response_format | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||