trace_prototype_flow
Trace Figma prototype navigation from a start screen through NAVIGATE, OVERLAY, and SWAP actions, returning reachable screens, edges, unresolved links, and pending screens.
Instructions
Trace a prototype flow (Figma Design only). Breadth-first search from a start screen (or a node inside one) following NAVIGATE / OVERLAY / SWAP actions, including ones nested in conditionals and on instance sublayers. Returns screens [{id, name, page, depth, reachedFrom}], edges [{from screen, sourceNode, trigger, action, navigation, destination, to screen, transition, conditional/conditions, followed:false for SCROLL_TO/CHANGE_TO}] plus BACK/CLOSE/URL edges, unresolved destinations (deleted nodes), and pending screens discovered but not visited because maxScreens was reached.
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": "trace_prototype_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| nodeId | Yes | Start screen (top-level frame) or any node inside it | |
| maxScreens | No | Max screens to visit (default 25) | |
| maxNodesPerScreen | No | Max nodes scanned per screen (default 2000) |