paint_shape
Draw geometric shapes—rectangles, ellipses, polygons, lines, and bezier curves—with fills and outlines on editable vector or raster layers, with smooth-curve and antialiasing controls.
Instructions
Geometry rendered only within its own bounds (fast even on big canvases). Points are pairs [[x,y],...]. Box shapes use two corners in either order; cubic bezier four control points. Zero-size boxes and polygons with <3 distinct points are skipped (result 'skipped'), not errors. Fill+outline in one call keeps outlines on edges. smooth=true: polygon/line through its points as a smooth curve. bleed px widens the fill to hide seams between adjacent antialiased facets. antialias=false paints hard pixels (boxes and polygons cover [x0,x1)). Vector layer retains editable objects, raster layer paints pixels. Pixel selection applies only to raster.
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": {
"shape": "<shape>",
"points": "<points>"
},
"name": "paint_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | ||
| bleed | No | ||
| shape | Yes | ||
| width | No | ||
| points | Yes | ||
| radius | No | ||
| smooth | No | ||
| outline | No | ||
| editable | No | ||
| layer_id | No | Target layer id or unique layer name; the active layer stays unchanged. Default: active layer | |
| antialias | No | ||
| document_id | No | Target this document instead of the shared active one (recommended when several agents share the server) |