figma_get_text
Extract all text under a Figma node or file in reading order, with node IDs; instance overrides are included and hidden layers excluded by default.
Instructions
All text content under a node (or the whole file) in reading order, with node ids. Component instances are expanded, so strings that only exist as instance overrides or component property values are included, each tagged with via (direct/instance) and, where they apply, its component, variant and enclosing frame. A field that does not apply is absent: text on the canvas has no component. Hidden layers are excluded unless include_hidden. The result always reports total/truncated/unresolvedInstances: a non-zero unresolvedInstances means text is missing, at that many places; unresolved lists each missing component once, with its count and some of those places, the most common first, and unresolvedComponentsOmitted counts the components past that listing. Without page, or a node_id other than the document's own (0:0), it reads every page but exclude_pages (never the project's excludePages) and shares limit between them, so one cannot crowd out the rest; byPage gives each page's returned and total: pass page for one cut short. Dated by exportedAt and account, or fileModifiedAt for a file read from disk, as the server's instructions say (figma-reader help on the command line).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | A local .fig path, a Figma file key or a figma.com/design/... URL (see the server's instructions, or figma-reader help) | |
| page | No | Only text on this page, by name | |
| limit | No | Default 500 | |
| fields | No | Keys to keep in each item, of id, name, text, via, component, variant, frame (default all) | |
| node_id | No | Only the text under this node, like 12:34 (or 12-34); the document's own id (0:0) is the whole file | |
| refresh | No | Export the live file again rather than read a local or cached copy (see the server's instructions, or figma-reader help) | |
| exclude_pages | No | Pages to leave out, by name (default none) | |
| include_hidden | No | Include layers hidden in the design (default false) |