Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figma_get_file_for_plugin

Retrieves filtered Figma file structure, node IDs, and component relationships for plugin development while excluding visual properties to reduce payload.

Instructions

Get file data optimized for plugin development with filtered properties (IDs, structure, plugin data, component relationships). Excludes visual properties (fills, strokes, effects) to reduce payload. Use when user asks for: plugin development, file structure for manipulation, node IDs for plugin API. NOT for component descriptions (use figma_get_component). NOT for visual/styling data (use figma_get_component_for_development). Supports deeper tree traversal (max depth=5) than figma_get_file_data.

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

Input Schema

NameRequiredDescriptionDefault
depthNoHow many levels of children to include (default: 2, max: 5). Higher depths are safe here due to filtering.
fileUrlNoFigma file URL (e.g., https://figma.com/design/abc123). REQUIRED unless figma_navigate was already called.
nodeIdsNoSpecific node IDs to retrieve (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.17.3

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the load and does disclose meaningful behavior: the payload is filtered, visual properties (fills, strokes, effects) are dropped, and depth up to 5 is described as safe because of that filtering. It does not cover auth/permission needs or whether the fileUrl prerequisite state persists, so it is strong but not exhaustive.

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?

Opens with the capability and payload scope, then the use cases, then the exclusions – a front-loaded structure with no filler. Every sentence either states capability or routes the agent elsewhere.

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 tool with no annotations and no output schema, the description adequately says what comes back (IDs, structure, plugin data, component relationships) and what is deliberately omitted. It stops short of describing response shape or how nodeIds interacts with depth, but the essential calling information is present.

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 depth, fileUrl and nodeIds are already documented including defaults, bounds, and the figma_navigate precondition. The description only reinforces that deeper traversal is safe here; it adds no syntax or format detail beyond the schema, so baseline 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?

Names a specific verb and resource ('Get file data optimized for plugin development') and immediately scopes the payload with 'filtered properties (IDs, structure, plugin data, component relationships)' and excluded visual properties. The subsequent NOT-for clauses separate it cleanly from figma_get_component and figma_get_component_for_development.

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?

Gives explicit trigger conditions ('Use when user asks for: plugin development, file structure for manipulation, node IDs for plugin API') and two explicit exclusions, each routed to a named alternative. It also states a comparative rule against figma_get_file_data for depth, leaving little to inference.

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