Skip to main content
Glama
sand1018

figma-context-mcp-server

by sand1018

下载 Figma 设计资源到本地

figma_download_assets
Idempotent

Analyze a Figma node, extract its image and SVG assets, and save them to a local directory for design-to-code workflows.

Instructions

分析指定节点并将所有图片/SVG 资源下载到本地目录。

流程:

  1. 获取 metadata + design-context

  2. 运行语义分析,提取 assets 列表

  3. 通过 localhost URL 下载每个资源文件

  4. 返回下载结果摘要

Args:

  • node_id (string, 必填): Figma 节点 ID

  • out_dir (string, 必填): 资源保存目录

Returns: 下载摘要(成功/失败数量,文件列表)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
node_idYesFigma 节点 ID,先分析该节点获取 assets 列表
out_dirYes资源保存目录路径(相对于工作区根目录或绝对路径)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare openWorldHint, idempotentHint, and non-destructive mutation, so the description's flow (fetch, analyze, download via localhost) provides some useful context about internal steps and authentication-like localhost URLs. However, it does not reveal what gets written, whether existing files are overwritten, or any rate limits, which are important for a non–read-only operation.

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 description is structured with a clear flow list and parameter/return sections, and it is front-loaded with the main action. It is slightly repetitive (e.g., repeating parameter names from schema) but overall efficient.

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

Completeness3/5

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

With annotations covering safety hints and no output schema, the description provides the core process and return summary. However, it omits details about file overwrite behavior, error handling, permissions needed for localhost downloads, and any workspace path constraints, leaving gaps for a write operation.

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 the schema already documents both parameters fully. The description repeats the same parameter names with '必填' but adds no additional syntax or format details beyond what the schema provides.

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?

The description states a specific verb and resource ('分析指定节点并将所有图片/SVG 资源下载到本地目录') and clearly distinguishes it from siblings like figma_get_screenshot or figma_analyze_structure by emphasizing the download-to-local action.

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?

Usage is implied by '分析指定节点' and the download flow, but there are no explicit when-to-use/when-not-use statements or alternative tools mentioned. An agent can infer the context but is not given guidance on choosing this tool over siblings.

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