create_section
Create a canvas section to organise Figma nodes, optionally moving existing children into it and auto-fitting the section to wrap them with padding.
Instructions
Create a section (canvas organiser; parent must be the page or another section, not a frame). Default size 400x300. childIds moves existing nodes into the section keeping their position on canvas (per-node results in moved). fitToContent resizes/moves the section to wrap its children with padding (default 40) — it defaults to true when childIds are given without width/height, so create_section({name, childIds}) just wraps those nodes.
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_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Position relative to parent. If x, y and parentId are all omitted the node is centred in the viewport | |
| y | No | ||
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| fill | No | Hex color or 'none' | |
| name | No | ||
| width | No | ||
| height | No | ||
| padding | No | Padding used by fitToContent. Default 40 | |
| childIds | No | Existing nodes (same page) to move into the section | |
| parentId | No | Parent frame/group/section id; default current page | |
| fitToContent | No |