一键导入
figma-rest-api-endpoints
Complete Figma REST API reference — all endpoints, tier levels, auth, geometry parameters, and rate limits.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Complete Figma REST API reference — all endpoints, tier levels, auth, geometry parameters, and rate limits.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | figma-rest-api-endpoints |
| description | Complete Figma REST API reference — all endpoints, tier levels, auth, geometry parameters, and rate limits. |
I am a reference for the Figma REST API v1. Use me when you need to know which endpoints exist, how they're called, and what tiers/rate limits apply.
https://api.figma.com/v1
X-Figma-Token: <token>Authorization: Bearer <token>file_content:read, library_content:read, file_variables:read (Enterprise only)| Method | Endpoint | Tier | Used in | Purpose |
|---|---|---|---|---|
GET | /files/:key | T2 | FigmaService.getRawFile() | Full file data with geometry=paths |
GET | /files/:key/nodes?ids=... | T1 | FigmaService.getRawNode(), fetchNodesBatch() | Specific node data with depth param |
GET | /files/:key/styles | T3 | fetchStyles() | All styles in a file |
GET | /files/:key/components | T3 | fetchComponents(), componentMap.ts | All components in a file |
GET | /files/:key/variables/local | T2 | FigmaService.getLocalVariables(), fetchVariables() | Local variables + collections |
GET | /files/:key/comments | T3 | fetchComments() | Comments on the file |
GET | /files/:key/images | T2 | FigmaService.getImageFillUrls() | Download URLs for image fills |
GET | /images/:key?ids=... | T2 | FigmaService.renderNodeImages() | Render nodes as PNG images |
GET | /components/:key | T3 | componentMap.ts | Resolve component key → library file key |
| Tier | Professional (Dev/Full) | Organization | Enterprise |
|---|---|---|---|
| T1 | 10 req/min | 30 req/min | 50 req/min |
| T2 | 25 req/min | 60 req/min | 200 req/min |
| T3 | 50 req/min | 150 req/min | 500 req/min |
get_figma_designEach invocation makes:
| # | Endpoint | Tier |
|---|---|---|
| 1+ | GET /files/:key/nodes | T1 (1 + N where N = unique library files) |
| 1 | GET /files/:key/variables/local | T2 (if resolveVariables=true) |
| 1 | GET /files/:key/styles | T3 |
| 1 | GET /files/:key/comments | T3 |
| N | GET /components/:key | T3 (resolve component keys) |
| N | GET /files/:libKey/components | T3 (fetch library components) |
geometry=paths — returns vector geometry as SVG paths (always used in this project)depth=N — limit node tree depth. Default is full depthids=id1,id2 — comma-separated node IDsplugin_data — include plugin data (not used)branch_data — include branch data (not used)All Figma REST API calls should be methods on FigmaService in src/services/figmaConnector.ts. Files that currently bypass this:
src/figma/fetch.ts — fetchStyles(), fetchComponents(), fetchVariables(), fetchComments()src/figma/batchFetch.ts — fetchNodesBatch()src/figma/mcp/componentMap.ts — component resolution + library fetchThese should be migrated to FigmaService methods and callers should use the service instance.
Design token extraction pipeline — frequency counting, semantic naming, token replacement, and varRef stripping.
How to register new MCP tools — tool object pattern, Zod schemas, handler conventions, and conditional registration.
Release workflow — release-please, npm publish, server.json version sync, and MCP registry publishing.
SVG vector generation from Figma VECTOR nodes — caching, path merging, bounds calculation, and disk writing.