Skip to main content
Glama
figma-mcp
by svv2014

save_figma_nodes_to_json

Export specified Figma nodes to a JSON file for analysis, backup, or downstream processing. Optionally set the output path and pretty-print formatting.

Instructions

Save specific nodes from a Figma file to a JSON file

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": {
      "fileKey": "<fileKey>",
      "ids": "<ids>"
    },
    "name": "save_figma_nodes_to_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesArray of node IDs to save
fileKeyYesThe Figma file key
outputPathNoThe output file path (optional, will generate default if not provided)
prettyPrintNoWhether to pretty print the JSON (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It reveals that output goes to a file but says nothing about whether an existing file is overwritten, whether directories are created, whether the call hits the Figma API and thus requires auth or is rate limited, or what the saved JSON actually contains.

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?

A single short, front-loaded sentence with no filler or redundancy. It is efficiently written but so terse that brevity comes at the cost of any operational detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With four parameters, a required file key and ID array, file-writing side effects, and no annotations or output schema, the description should clarify output format, overwrite behavior, and how it differs from save_figma_file_to_json. None of that is present, leaving meaningful gaps for a mutation-style tool.

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 all four parameters (ids, fileKey, outputPath, prettyPrint) are already documented in the schema, including the default path generation and default pretty-print behavior. The description adds nothing beyond restating that nodes go to a JSON file, so the baseline 3 applies.

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 (save), a scoped resource (specific nodes from a Figma file), and the output artifact (a JSON file). This implicitly separates it from save_figma_file_to_json, which saves a whole file, but the distinction is never made explicit.

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

Usage Guidelines2/5

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

The word 'specific' hints that this is the selective counterpart to saving an entire file, but there is no explicit when-to-use guidance, no mention of a sibling like save_figma_file_to_json or get_figma_file_nodes, and no prerequisites such as needing the file key and node IDs from a prior lookup.

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