set_visible
Toggle a node's visibility to hide it from rendering and exports while keeping it in the layer tree. Use this to show or hide elements without deleting them.
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 |