Skip to main content
Glama

monorail_css

Extract CSS and raw paint data from a Figma node for design-to-code translation, including fills, strokes, effects, gradients, and blend modes.

Instructions

Extract CSS and raw paint data from a Figma node. Returns Figma's getCSSAsync() output (same as 'Copy as CSS') plus raw fills, strokes, effects with full gradient data and blend modes. Use for design-to-code translation.

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_css"
  }
}

Input Schema

NameRequiredDescriptionDefault
node_idNoFigma node ID to extract CSS from. If omitted, uses the currently selected node.
timeout_msNoThe most this call may take, in ms (default 90000; 1000–600000): waiting its turn behind other sessions' requests plus the plugin's own work. A big node can take longer. The call returns by about timeout_ms + 2s (+ up to 3s if the proxy link is reconnecting), with an error naming the limit that ran out. While it runs, other sessions' requests queue behind it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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. It does well on output content (raw fills, strokes, effects, gradient data, blend modes), but never states that this is a non-mutating read, nor that it depends on a live plugin session or on a current selection when node_id is omitted. The timeout/queueing behavior is disclosed only in the schema, not the description.

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 short sentences, front-loaded with what is extracted and what is returned, ending with the one-line use case. No redundant or filler wording.

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?

There is no output schema, so the description must describe return values, and it does so concretely by naming getCSSAsync output plus the raw paint fields. It is nearly complete for a two-parameter read tool; only the read-only nature and session/selection prerequisites are left implicit.

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%, including the node_id selection fallback and the full timeout semantics, so the schema already does the heavy lifting. The description adds no parameter-level meaning beyond it, which is the baseline case.

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 ('Extract CSS and raw paint data from a Figma node') and names the exact underlying Figma operation (getCSSAsync / 'Copy as CSS'), so the agent knows precisely what comes back. It does not, however, distinguish itself from plausible siblings like monorail_export or monorail_screenshot, leaving the agent to infer which one yields CSS versus assets or pixels.

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?

'Use for design-to-code translation' implies a context but gives no when-not conditions and names no alternative tool. An agent choosing between this and monorail_export or monorail_screenshot gets no routing help from the description.

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