paint_strokes
Render an atomic batch of pressure-sensitive strokes with taper, antialiasing, smoothing, and dash patterns into a layer; per-stroke settings override defaults, and failed calls roll back.
Instructions
Render an atomic stroke batch with real pressure, taper and antialiasing into layer_id (default active). brush/color/smooth/dash here are defaults for every stroke; per-stroke values override. smooth=true draws Catmull-Rom curves through the points; dash=[on,off] dashes, [0,gap] dots. An empty list paints nothing. Document pixels independent of preview. Failure rolls back the complete call.
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": {
"strokes": "<strokes>"
},
"name": "paint_strokes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dash | No | ||
| brush | No | ||
| color | No | ||
| smooth | No | ||
| strokes | Yes | ||
| layer_id | No | Target layer id or unique layer name; the active layer stays unchanged. Default: active layer | |
| dash_offset | No | ||
| document_id | No | Target this document instead of the shared active one (recommended when several agents share the server) | |
| coordinate_space | No | document | |
| expected_revision | No |