rect
Draw a filled or outlined rectangle on a pixel art canvas using position, size, and palette index.
Instructions
Draw a rectangle (outline or filled).
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": {
"doc_id": "<doc_id>",
"x": "<x>",
"y": "<y>",
"w": "<w>",
"h": "<h>",
"index": "<index>",
"filled": "<filled>"
},
"name": "rect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | Yes | ||
| w | Yes | ||
| x | Yes | ||
| y | Yes | ||
| clip | No | Silently discard out-of-bounds pixels instead of rejecting (default false) | |
| frame | No | Frame index, 0-based (default: active frame) | |
| index | Yes | Palette index | |
| layer | No | Layer id or name (default: active layer) | |
| doc_id | Yes | Document id | |
| filled | Yes | ||
| render | No | Include a render of the change (default true) | |
| ignore_symmetry | No | Skip symmetry mirroring for this call (default false) |