Skip to main content
Glama

Get Figma file

figma_get_file
Read-onlyIdempotent

Retrieves a Figma file as a document tree of pages, frames, and layers. Start with depth 1 or 2 for large files, then drill into nodes for details.

Instructions

Returns a Figma file as a document tree (pages, frames, layers). Large files return huge payloads — start with depth=1 or depth=2, then drill in with figma_get_file_nodes.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file_key": "<file_key>"
    },
    "name": "figma_get_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoTraverse depth of the returned document tree. 1 = pages only, 2 = pages + top-level children. Default 2.
file_keyYesFile key from the Figma URL, e.g. https://www.figma.com/design/<FILE_KEY>/Name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and open-world behavior, so safety is covered. The description adds a genuinely useful behavioral trait not in annotations: large files produce huge payloads, which is why a shallow depth is recommended first. It stops short of noting rate limits, auth requirements, or payload truncation.

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?

Two sentences, zero filler. The return shape is stated first and the payload-size warning plus the drill-down strategy follow, which is the right order for an agent deciding how to call it.

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?

With no output schema, the description carries the burden of describing the return value, and it does so concisely as a document tree. For a two-parameter read tool with full annotation coverage this is nearly complete, missing only edge-case behavior such as oversized-response handling.

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% and the depth parameter is fully documented there (including the 1–6 range and default 2). The description's mention of depth=1/depth=2 reinforces practical usage but adds no semantics beyond the schema, so the baseline of 3 applies.

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?

States a specific verb and resource ('Returns a Figma file as a document tree') and immediately characterizes the return shape (pages, frames, layers). It names the sibling figma_get_file_nodes as the drill-down path, so an agent can distinguish the two tools without inspecting 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 Guidelines4/5

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

Gives actionable usage guidance: start with depth=1 or depth=2, then escalate to figma_get_file_nodes for detail. The condition selecting the alternative is explicit, though there is no explicit 'do not use this for X' exclusion beyond the drill-down hint.

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