figma_rest_api
Call Figma REST API directly to export files, manage comments, access version history, and list projects. Use custom endpoints for operations beyond the plugin bridge.
Instructions
Call Figma REST API directly. Requires a token set via figma_set_rest_token. Use for: file export (SVG/PNG), comments, version history, team/project listing, image fills, and anything not available through the plugin bridge. Endpoint examples: GET /v1/files/:fileKey, GET /v1/images/:fileKey, GET /v1/files/:fileKey/comments
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": {
"endpoint": "<endpoint>"
},
"name": "figma_rest_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for POST/PUT requests | |
| method | No | HTTP method | GET |
| endpoint | Yes | REST API path, e.g. '/v1/files/abc123' or '/v1/me' |