get_variables
Retrieve local variables or collections in Figma. Optionally scan for consumer nodes and styles by providing variable IDs.
Instructions
Get all local variables/collections or detailed info for specific variable(s) by ID(s). When variableId is provided, optionally scan for consumer nodes, styles, and variable aliases via includeConsumers (Note: Consumer scanning is limited to the current document).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variableId | No | Optional array of variable IDs to retrieve | |
| includeConsumers | No | Only used when variableId is provided; ignored otherwise. 'current_page' scans the active page (fast). 'document' scans all pages (streams progress page-by-page, slow on large files). |