edit_image
Transform or inpaint an existing image using a text prompt, optional mask, and reference images; returns an async result or job ID for polling.
Instructions
Edit/transform an image: init_image (img2img/inpaint) or ref_images (edit). Asynchronous, like generate_image (waits <= ~30s, otherwise job_id).
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": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | No | Path to the mask (inpaint) | |
| seed | No | ||
| steps | No | ||
| width | No | ||
| height | No | ||
| prompt | Yes | ||
| profile | No | ||
| sampler | No | ||
| strength | No | ||
| cfg_scale | No | ||
| init_image | No | Path to the image (or base64/dataURL) | |
| ref_images | No | Reference images (edit) | |
| wait_seconds | No | Seconds to wait (0..30, default 20) | |
| negative_prompt | No |