fetch_figma_node
Fetch a Figma design node or file metadata via the Figma API, normalize it into compiler input, and return structured node data with Auto Layout details.
Instructions
Fetch a design node from the Figma API and normalize it into the compiler input format. Returns structured node data (including Auto Layout info).
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": {
"figmaUrl": "<figmaUrl>"
},
"name": "fetch_figma_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Fetch node details (node) or file metadata (file_meta) | |
| figmaUrl | Yes | Figma design link | |
| figmaToken | No | Figma Access Token (optional; defaults to the FIGMA_ACCESS_TOKEN env var) |