getFigmaFrame
Export a Figma frame as a PNG, JPG, or SVG image. Provide the file key and node ID, then optionally adjust scale and format.
Instructions
Export Figma frame as PNG. Requires API token and file/node IDs.
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>",
"nodeId": "<nodeId>"
},
"name": "getFigmaFrame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Scale (default: 2) | |
| format | No | Format (default: png) | |
| nodeId | Yes | Frame/component ID | |
| fileKey | Yes | File key | |
| figmaToken | No | API token (optional) |