Skip to main content
Glama

monorail_capture

Captures a slide's full node tree, design tokens, and template slots to analyze existing designs before cloning, with adjustable depth for complex layouts.

Instructions

Capture full node structure from a slide. Returns complete frame tree with positions, fills, strokes, Auto Layout, text styling. Also extracts design system tokens (colors, fonts, spacing) and identifies template slots. Use this to analyze existing designs before cloning. If important content appears in complex_regions, re-capture with higher max_depth.

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": "monorail_capture"
  }
}

Input Schema

NameRequiredDescriptionDefault
slide_idNoOptional Figma node ID of slide to capture. If omitted, captures the currently selected slide (or first slide).
max_depthNoMaximum nesting depth to capture as editable slots (default: 2). Increase to 3 or 4 for complex slides with nested cards/columns. Content deeper than this becomes complex_regions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does a reasonable job: it discloses the return shape, the truncation model where content beyond max_depth becomes complex_regions, and the default-selection fallback for slide_id. It never explicitly states this is a read-only, non-mutating operation, and says nothing about cost, rate limits, or very large slides.

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?

Three sentences, front-loaded with what the tool does and its return contents, then usage context, then the tuning rule. Every sentence carries distinct information with no repetition of the tool name or 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 a two-parameter, zero-required, no-output-schema read tool, the description covers return content, truncation semantics, and default targeting well enough to call it correctly. The remaining gap is the explicit read-only assurance and any note on the shape or size of the token output.

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

Parameters3/5

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

Schema description coverage is 100%, so both parameters are already documented, including the complex_regions/truncation behavior. The description's only genuine addition is the operational guidance to re-capture with a higher max_depth when important content is trapped in complex_regions, which is a modest increment over the schema.

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?

States a specific verb and resource ('Capture full node structure from a slide') and enumerates what the capture includes: frame tree, positions, fills, strokes, Auto Layout, text styling, design tokens, and template slots. It also implies the relationship to cloning ('analyze existing designs before cloning'), which helps separate it from write-side siblings, though it does not explicitly contrast with read-side siblings like monorail_probe or monorail_pull.

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?

Gives a clear use context ('Use this to analyze existing designs before cloning') and a concrete follow-up rule: if important content lands in complex_regions, re-capture with higher max_depth. It does not name an alternative tool for when this capture isn't the right choice (e.g., a lightweight probe), so the when-not guidance is incomplete.

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