Skip to main content
Glama

Figma's CSS

get_css
Read-only

Retrieve Figma-generated CSS for specific layers to cross-check implementation against Dev Mode output; use it as a reference, not a layout description.

Instructions

Figma's own generated CSS (as in Dev Mode) for specific layers — a cross-check, not a layout description.

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

Input Schema

NameRequiredDescriptionDefault
fileNoWhich open Figma file (name or key) when several are connected. Default: the most recently active.
targetNoFigma URL, node id(s) like "12:34" (comma-separated), or omit for the current selection in Figma.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description goes beyond that by disclosing the output's provenance and trust level: it is Figma-generated Dev Mode CSS and should be treated as a cross-check rather than ground truth. That reliability caveat is behaviorally valuable and not encoded in any structured field. It stops short of saying how layers are scoped in the response or whether inherited/positioning properties are included.

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?

A single front-loaded sentence that identifies the resource first, then the caveat. Nothing is redundant or padded.

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 read-only retrieval tool with two optional, fully documented parameters and no output schema, the definition covers what is needed to select and call it. The only gap is what the returned CSS block actually spans, which matters modestly since no output schema exists to describe it.

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 (file, target) are already fully documented, and the description adds no format or syntax detail beyond that. Baseline 3 applies when the schema does the heavy lifting.

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?

Names the exact artifact returned (Figma's own generated CSS, as in Dev Mode) and scopes it to "specific layers," so the agent knows precisely what kind of resource it gets. It also distinguishes itself from layout-describing siblings with "not a layout description," though it does not name the sibling it means.

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?

"a cross-check, not a layout description" implies when to reach for it (verification) versus when to prefer a layout tool, which is real guidance. But it never names an explicit alternative or states preconditions, so the when-to-use decision is left partly to inference.

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