Inpaint Image
inpaint-imageEdit specific image regions by applying a mask and prompt to generate content in masked areas, enabling targeted image modifications.
Instructions
Edit specific regions of an image using a mask
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": {
"messageId": "<messageId>",
"maskUrl": "<maskUrl>",
"prompt": "<prompt>"
},
"name": "inpaint-image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messageId | Yes | Message ID of the base image | |
| maskUrl | Yes | URL of the mask image (white areas will be edited) | |
| prompt | Yes | Description of what to generate in masked areas | |
| ref | No | Optional reference ID | |
| webhookOverride | No | Optional webhook URL |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | No | ||
| success | Yes | ||
| imageUrl | No | ||
| progress | No | ||
| messageId | No |