clean_hidden_layers
Remove all hidden layers from a Figma node tree to reduce clutter and optimize file size. Use dryRun to preview changes before deleting.
Instructions
Remove all hidden layers from a node tree.
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": {
"nodeId": "<nodeId>"
},
"name": "clean_hidden_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview changes without deleting (default: false) | |
| nodeId | Yes | Root node to clean |