Download assets
figma_local_download_assetsDownload exported images, original fill images, and SVG vector assets for a single Figma node, using its export settings or overriding format and scale.
Instructions
Download assets for a single node: export (an exported image of the whole node), rawImages (original uploaded images used as fills in the subtree, capped at 20, each with its real format) and svgAssets (SVGs for vector layers such as icons and logos, capped at 20). When defaultFormat/defaultScale are given they override the export settings configured on the node; otherwise the node's export settings are used if present, else png at scale 1. Pass them only when the user asks for a specific format or size. Each asset has a temporary url (download promptly) or, when the companion plugin rendered it, a local file path.
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": "figma_local_download_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node in the Figma document, eg. "123:456" or "123-456". Extract it from the URL's node-id query parameter. Do not pass an empty or guessed nodeId. | |
| fileKey | Yes | The key of the Figma file to use. If a URL is provided, extract the file key from it: for https://figma.com/design/:fileKey/:fileName?node-id=1-2 the fileKey is `:fileKey`. For https://figma.com/design/:fileKey/branch/:branchKey/:fileName use the branchKey. A full URL is also accepted. | |
| defaultScale | No | Export scale (resolution multiplier). Overrides the node's export settings. | |
| defaultFormat | No | Export format. Overrides the node's export settings. |