inpaint_v3
Edit a pixel art image by masking: white areas are regenerated, black areas stay unchanged. Supports images up to 512px with optional style context.
Instructions
Edit a specific region of a pixel art image using a mask. White mask = generate, black mask = preserve. Image 32-512px, optional context image up to 1024x1024. Preferred over legacy inpaint (which caps at 200px).
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": {
"description": "<description>",
"inpainting_image": "<inpainting_image>",
"mask_image": "<mask_image>"
},
"name": "inpaint_v3"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Seed for deterministic generation (default 0) | |
| mask_image | Yes | Mask (white=generate, black=preserve) | |
| description | Yes | What to generate in the masked area | |
| bounding_box | No | Precise editing area within the image (deprecated) | |
| crop_to_mask | No | Whether to crop generated content to mask boundary (default true) | |
| context_image | No | Style guidance image (up to 1024x1024) (deprecated) | |
| no_background | No | Generate with transparent background | |
| inpainting_image | Yes | Image to edit |