scan_text_nodes
Scans text nodes inside a Figma node to inspect content, skips hidden layers, and returns a cursor to resume when time or node limits are reached.
Instructions
Scan the text nodes of a node (read-only, hidden nodes skipped). Time budget and paging: when the budget or maxNodes is reached the answer says PARTIAL and gives nextCursor. highlight:true restores the old orange flash (a temporary fill change, slow).
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": {
"nodeId": "<nodeId>"
},
"name": "scan_text_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | nextCursor of a previous PARTIAL answer, to continue where it stopped | |
| nodeId | Yes | ID of the node to scan | |
| maxNodes | No | Text nodes per call (default 1000) | |
| highlight | No | Flash each text node (default false) | |
| timeBudgetMs | No | Time budget of the plugin for this call in ms (default 60000, max 100000). When it is reached the answer says it is PARTIAL and gives nextCursor. | |
| includeInstanceChildren | No | Scan inside instances (default true) |