Extract text from a file
extract_textExtract text content from Figma design files by walking TEXT nodes and returning id, name, characters, and parentId for each text element.
Instructions
Utility: walk TEXT nodes and return { id, name, characters, parentId } copy. Default depth 8.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>"
},
"name": "extract_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Node ids, comma-separated or as an array. URL form 1-2 is normalized to 1:2. | |
| file | Yes | Figma file key or URL (figma.com/design/... or figma.com/file/...) | |
| depth | No | ||
| limit | No |