get_vector
Exports real vector geometry (fill and stroke paths) from Figma .fig files to SVG, PDF, or raster formats. Saves output to a file for direct use without recreating paths.
Instructions
Exports REAL geometry from the .fig blob (fillGeometry/strokeGeometry commandsBlob). Agents must OPEN the resulting file — do not recreate paths. Prefer outputPath. For multi-asset work use export_asset_pack. When format=svg without outputPath, SVG text is returned but you should still save/open it rather than rewriting d attributes.
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": {
"filePath": "<filePath>",
"nodeId": "<nodeId>",
"format": "<format>"
},
"name": "get_vector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Output width in pixels (required for png/webp, optional for pdf) | |
| format | Yes | Output format: svg (vector from real geometry), pdf, png/webp (raster) | |
| height | No | Output height in pixels (required for png/webp, optional for pdf) | |
| nodeId | Yes | GUID string in format 'sessionID:localID' (e.g., '457:1682') or 'sessionID-localID' | |
| filePath | Yes | Path to the .fig file | |
| outputPath | No | Filesystem path to write the export (strongly recommended). Agents open this file instead of copying path data into code. | |
| includeStyles | No | Include fill/stroke styles from node (default: true) |