get_local_components
Retrieve components and component sets within a node subtree or current selection, including variant properties and group definitions.
Instructions
Return the components and component sets within a node subtree (or the current selection) as { components, componentSets }. Scans a subtree, not the whole document — pass nodeId, or select the frames to scan. Components carry their variantProperties (when part of a set); component sets carry their variantGroupProperties (available values per axis) and the ids of their variant components.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | Root node id to scan within; omit to use the current selection |