paint_pattern
Fills polygons, rectangles, selections, or whole layers with hatch, stipple, halftone, or dither patterns for stylized shading, texture, and tonal effects.
Instructions
Pattern fill drawn by the engine inside points (polygon; smooth=true for curves), rectangle, or the selection/whole layer. hatch: lines at angle (degrees, clockwise from +x) or angles=[45,-45] crosshatch, spacing/width px, jitter 0..1 (hand-made breaks, wobble, offsets), taper 0..1 dash ends, dash [on,off]. stipple: random dots, spacing = mean distance, size diameter, size_jitter, density = keep probability. halftone: dot grid at angle with pitch spacing, dot diameter size*sqrt(level) (Ben-Day, print screens). dither: ordered Bayer 8x8 with cell px art pixels (pixel-art gradients). density 0..1 (default hatch 1, others 0.5) and gradient {type: linear|radial, start:[x,y], end:[x,y], from, to} set the tone; texture 0..1 adds document-fixed paper grain. Patterns are anchored to the document, so adjacent fills continue seamlessly.
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": {
"kind": "<kind>"
},
"name": "paint_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | No | ||
| dash | No | ||
| kind | Yes | ||
| seed | No | ||
| size | No | ||
| angle | No | ||
| color | No | ||
| taper | No | ||
| width | No | ||
| angles | No | ||
| jitter | No | ||
| points | No | ||
| smooth | No | ||
| density | No | ||
| opacity | No | ||
| spacing | No | ||
| texture | No | ||
| gradient | No | ||
| layer_id | No | Target layer id or unique layer name; the active layer stays unchanged. Default: active layer | |
| rectangle | No | ||
| blend_mode | No | normal | |
| document_id | No | Target this document instead of the shared active one (recommended when several agents share the server) | |
| size_jitter | No |