create_path
Create vector paths from point lists or SVG path data, including compound paths, with fill/stroke styling and layer/group placement.
Instructions
Create a path from points, several point lists (compound path), or SVG path data "d" (SVG y-down units = session units; scale and x, y offset them — so an SVG icon can be dropped in at any size). Default paint when neither fill nor stroke is given: closed → black fill, open → 1 pt black stroke. Appearance: fill, stroke (colour or "none"), stroke_width (pt), dash (pt; [] = solid), cap, join, opacity, blend, graphic_style (applied first); name, note, hidden, locked. Placement: layer or parent. Many at once: items:[{…}]. Returns {count, items:[{uuid, name, type, box}]}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| d | No | SVG path data: M L H V C S Q T A Z, absolute/relative; several subpaths → compound path | |
| x | No | ||
| y | No | ||
| cap | No | ||
| dash | No | ||
| fill | No | ||
| join | No | ||
| name | No | ||
| note | No | ||
| blend | No | multiply, screen… (blend mode) | |
| items | No | many at once: props as above; top-level ones are shared defaults | |
| layer | No | name (created if missing; stays inactive) or @active | |
| paths | No | several point lists → one compound path (holes) | |
| scale | No | multiplies point / d coordinates (then offset by x, y) | |
| closed | No | ||
| hidden | No | ||
| locked | No | ||
| parent | No | group ref or "layer:Name" | |
| points | No | [x,y] corners, or {a:[x,y], in:[x,y], out:[x,y]} with Bézier handles (same format get_items returns) | |
| stroke | No | ||
| opacity | No | ||
| fill_rule | No | ||
| stroke_width | No | ||
| graphic_style | No |