set_visible
Show or hide a Figma node by toggling its visibility. Hidden nodes stay in the layer tree but are excluded from rendering and exports, and descendants are hidden with them. The change is reversible.
Instructions
Show or hide a node by toggling its visible flag. A hidden node stays in the layer tree but is excluded from rendering and exports, and its descendants are hidden with it; the change is fully reversible. To remove a node use delete_nodes; to dim one while keeping it visible and exported use set_opacity. Returns { ok, nodeId }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Figma node id | |
| visible | Yes | true to show, false to hide |