inpaint
Remove unwanted elements from images using AI-powered inpainting. Select mask shapes and positions to replace specific areas with new content generated from text prompts.
Instructions
Inpaint 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": {
"image": "<image>",
"prompt": "<prompt>"
},
"name": "inpaint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Input image path | |
| prompt | Yes | Text prompt for inpainting | |
| mask_shape | No | Shape of the mask | circle |
| position | No | Position of the mask | center |
| output | No | Output filename | inpainted.jpg |