Text inventory
fig_textExtract all text content from local Figma files with layer names, page info, and typography details. Use copy audits and translation passes without traversing the document tree.
Instructions
Extract every string of copy in the file (or in one subtree via scope), in document order: guid, layer name, the characters, the page, and the base typography (font, size, line-height, colour). With includeRuns:true each node also carries its styled runs — the mixed-format spans Figma stores per UTF-16 code unit — with only the fields each run overrides. Use this for copy audits and translation passes rather than walking the tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the .fig / .figma file (absolute, or relative to the server CWD). | |
| scope | No | Only collect text inside this guid subtree. | |
| cursor | No | Opaque nextCursor from a previous truncated response; resumes where it stopped. | |
| includePath | No | Include the ancestor breadcrumb per node (default false; costs tokens). | |
| includeRuns | No | Include per-run style overrides (default false; costs many more tokens). | |
| includeStyle | No | Include font / size / line-height / colour per node (default true). |