Create a layer
create_nodeCreate frames, rectangles, ellipses, polygons, stars, lines, arrows, text, vectors, sections, components, or slices in FigCraft, positioned by page coordinates relative to a parent frame.
Instructions
Create a frame, rectangle, ellipse, polygon, star, line, arrow, text, vector, section, component or slice. Coordinates are page units relative to the parent frame (the page when there is none).
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": {
"type": "<type>"
},
"name": "create_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | ||
| path | No | ||
| text | No | ||
| type | Yes | ||
| index | No | ||
| props | No | ||
| width | No | ||
| closed | No | ||
| height | No | ||
| parent | No | ||
| points | No |