fit_section
Resize a section or frame without auto layout to wrap its children in configurable padding while preserving each child’s canvas position.
Instructions
Resize a section (or a frame without auto layout) to wrap its children with padding (default 40). Children keep their position on canvas; the container moves/resizes around them. Give nodeId (returns the node) or nodeIds (returns per-node results with {id, error} on failure).
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": "fit_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| nodeId | No | ||
| nodeIds | No | ||
| padding | No |