Skip to main content
Glama

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

NameRequiredDescriptionDefault
codeNoFor eval: async function body. `return` a JSON-serialisable value.
actionYesWhat to do.
filterNoFor node: case-insensitive regex on property names.
node_idNoFor node/eval: Figma node ID. Defaults to the current selection.
max_keysNoKeys kept per object (default 80, up to 10000). A cut object gets a "…" key.
max_depthNoLevels serialised (default 4 for eval, 2 per property for node; up to 12). Deeper values show as [array n] / [object T].
max_itemsNoItems 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_msNoThe 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden, and it does disclose real behavior: sandbox execution context, async eval body, in-scope helpers, systematic truncation with cuts marked in-value and flagged at the top of output, and the 'Development plugin only' restriction. What it omits is the risk profile of the most dangerous action — that eval executes arbitrary code in the document and can mutate it, and that nothing about it is read-only — plus any auth/permission requirements, so safety-relevant behavior is only partially covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single dense paragraph but front-loaded with the overall purpose before the action-by-action breakdown, and each clause carries information (action semantics, helpers, caps, dev-only constraint). Slightly over-packed — the action clauses and the truncation clause could be separated for faster scanning — but there is essentially no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter tool with no output schema, the definition covers all three actions, their return shape, the truncation reporting convention, and the environment restriction, which is close to what an agent needs. The remaining gap is that a code-execution tool never says whether eval can modify the document or what happens on error/timeout inside eval, which matters given the sibling tools include destructive operations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description earns above that by adding meaning the schema does not: the filter example ('anim|transition|reveal') shows the intended regex shape, eval's scope is spelled out including `node` resolving to nodeId or the current selection and the `protoNames`/`safeJson(v, depth?)` helpers, and the capping parameters are tied to visible truncation markers. Only timeout/queueing behavior is left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Explore the live Figma Plugin API from inside the plugin sandbox') and then defines each of the three actions — globals, node, eval — with concrete output semantics. An agent can tell this is an introspection/probing tool, clearly distinct from the mutating monorail_* siblings (capture, clone, push, delete) without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Per-action descriptions imply when each mode is appropriate (globals for the API surface, node for a prototype walk with an optional regex, eval for arbitrary computation), which is useful implied guidance. However, there is no explicit when-to-use vs when-not, no statement of when to prefer 'node' over 'eval' (the two overlap heavily), and no named alternative among the many monorail_* tools for cases where the agent just wants data rather than a probe.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.