Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figma_get_file_data

Fetch a Figma file's document tree and structure to understand layout or locate component node IDs. Use summary verbosity and depth 1 to reduce token consumption.

Instructions

Get full file structure and document tree. WARNING: Can consume large amounts of tokens. NOT recommended for component descriptions (use figma_get_component instead). Best for understanding file structure or finding component nodeIds. Start with verbosity='summary' and depth=1 for initial exploration.

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

Input Schema

NameRequiredDescriptionDefault
depthNoHow many levels of children to include (default: 1, max: 3). Start with 1 to prevent context exhaustion. Use 0 for full tree only when absolutely necessary.
enrichNoSet to true when user asks for: file statistics, health metrics, design system audit, or quality analysis. Adds statistics, health scores, and audit summaries. Default: false
fileUrlNoFigma file URL (e.g., https://figma.com/design/abc123). Auto-detected from WebSocket Desktop Bridge connection. Only required if not connected.
nodeIdsNoSpecific node IDs to retrieve (optional)
verbosityNoControls payload size: 'summary' (IDs/names/types only, ~90% smaller - RECOMMENDED), 'standard' (essential properties, ~50% smaller), 'full' (everything). Default: summary for token efficiency.summary

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.17.3

TDQS

A4.3/5.0
Behavior4/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 the key behavioral trait: this call can consume large amounts of tokens, which is unusual and important context. It does not state read-only status explicitly or whether the file must be open in the Desktop Bridge, leaving some behavioral gaps.

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?

The purpose is front-loaded, followed by the cost warning, the alternative, and the recommended starting parameters. Four compact sentences with little waste, though the token-efficiency advice partially duplicates the schema descriptions.

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 token-heavy read tool with no annotations and no output schema, the description covers cost, alternatives, and safe initial parameters, which is most of what an agent needs. It stops short of describing the returned tree shape or any authentication/bridge requirements.

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 coverage is 100%, so every parameter including depth, verbosity, enrich, and fileUrl is already documented with defaults and constraints. The description's guidance to start with verbosity='summary' and depth=1 largely restates what the schema already says, adding reinforcement rather than new meaning.

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?

"Get full file structure and document tree" is a specific verb+resource statement, and the description explicitly contrasts it with figma_get_component for component descriptions. An agent can distinguish this from sibling getters without opening either schema.

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

Usage Guidelines5/5

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

It names both when to use it (understanding file structure, finding component nodeIds) and when not to (component descriptions), and routes to a named alternative, figma_get_component. It also prescribes an initial exploration shape: verbosity='summary' and depth=1.

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

Deploy Server

Other Tools