monorail_probe
Inspect the live Figma Plugin API inside the plugin sandbox: list figma globals, walk a node's prototype chain, or evaluate async JS with figma and node in scope. Returns capped, truncation-flagged results.
Instructions
Explore the live Figma Plugin API from inside the plugin sandbox — including undocumented surface. 'globals' lists every own property of figma and its namespaces plus non-standard globals; 'node' lists every property up a node's prototype chain with its current value (optional regex filter, e.g. 'anim|transition|reveal'); 'eval' runs an async JS function body with figma, node (nodeId or selection), protoNames(obj) and safeJson(v, depth?) in scope and returns what it returns. Results are capped (max_items, max_keys, max_depth); every cut is marked in the value and flagged at the top of the output. Development plugin only.
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": {
"action": "<action>"
},
"name": "monorail_probe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | For eval: async function body. `return` a JSON-serialisable value. | |
| action | Yes | What to do. | |
| filter | No | For node: case-insensitive regex on property names. | |
| node_id | No | For node/eval: Figma node ID. Defaults to the current selection. | |
| max_keys | No | Keys kept per object (default 80, up to 10000). A cut object gets a "…" key. | |
| max_depth | No | Levels serialised (default 4 for eval, 2 per property for node; up to 12). Deeper values show as [array n] / [object T]. | |
| max_items | No | Items kept per list in the result (default 50, up to 10000). Cut lists end with a "[… N more items]" marker and the reply carries a truncation report. | |
| timeout_ms | No | The most this call may take, in ms (default 120000; 1000–600000): waiting its turn behind other sessions' requests plus the probe itself. It returns by about timeout_ms + 2s (+ up to 3s if the proxy link is reconnecting). Other sessions' requests queue behind the probe while it runs; a synchronous eval can't be interrupted, so keep heavy walks bounded. |