Skip to main content
Glama

get_prototype_connections

Read Figma prototype interactions by walking a node and its descendants, returning triggers, actions, resolved destinations, variables, conditional blocks, and page flow starting points.

Instructions

Read prototype interactions (Figma Design only; errors in FigJam). Walks a node and all descendants, including instance sublayers, and returns every node with reactions: trigger (timeouts/delays also as *Ms) and actions. NODE actions resolve destinationId to {id, name, type, screen (top-level frame), page}; SET_VARIABLE / SET_VARIABLE_MODE resolve variable, collection and mode names; CONDITIONAL actions are expanded recursively into blocks {condition, isElse, actions}. Also returns the page's flowStartingPoints (first = default). truncated is true when maxNodes was reached.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_prototype_connections"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
nodeIdNoScreen, node or page id. Default: current page
maxNodesNoMax nodes to scan (default 5000)
includeEmptyNoAlso list nodes that have no reactions (verbose)

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 whole burden. It discloses a lot: the platform restriction and error behavior, that traversal includes instance sublayers, the shape of returned actions (NODE/SET_VARIABLE/CONDITIONAL expansion), flowStartingPoints, and that `truncated` signals maxNodes was hit. However, it never says whether the operation is read-only in the safety-hint sense, whether large files are expensive or throttled, or how deep traversal can affect performance — the 'Read' verb implies non-mutation but doesn't state it.

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

Conciseness5/5

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

It is dense but every clause earns its place — platform constraint, traversal scope, action resolution, conditional expansion, flow data, and truncation semantics in one tight paragraph. The key constraint (Figma Design only) is front-loaded in parentheses rather than buried.

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 a tool with no output schema and a genuinely complex return structure, the description does the heavy lifting by enumerating the action variants and resolved fields. It is slightly incomplete on non-mutation guarantees and performance/limits, but an agent could invoke and interpret it correctly from this text.

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, but the description adds real meaning: `maxNodes` is tied to the `truncated` return flag, and `nodeId` is characterized as the root of a descendant walk ('walks a node and all descendants'), which tells the agent the scope is recursive rather than single-node. `includeEmpty` is only echoed ('verbose'), not extended.

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

Purpose4/5

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

The description opens with a specific verb and resource: 'Read prototype interactions,' then immediately scopes it to Figma Design and away from FigJam. It does not explicitly differentiate itself from the sibling trace_prototype_flow, so an agent must infer the boundary, but the operation itself is unambiguous.

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

Usage Guidelines4/5

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

It gives a clear when-not condition ('Figma Design only; errors in FigJam') and clarifies the traversal scope ('walks a node and all descendants, including instance sublayers'), so an agent knows the breadth of what it will get. It stops short of naming an alternative tool or stating when a narrower sibling like trace_prototype_flow would be preferable.

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