download_design_assets
Download icons, illustrations, and image fills from Figma designs into a local folder so generated code can reference them. Supports plugin and REST sources.
Instructions
Download icons, illustrations and image fills from a Figma design into a local folder so generated code can reference them. Use source 'plugin' for designs read with get_design_context, or 'rest' (with url/fileKey) for designs read with get_figma_design_from_url.
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": {
"source": "<source>",
"localPath": "<localPath>",
"items": "<items>"
},
"name": "download_design_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Figma URL (rest source) | |
| items | Yes | ||
| source | Yes | Where to read the assets from | |
| fileKey | No | Figma file key (rest source) | |
| localPath | Yes | Directory to write files to (absolute, or relative to the MCP server working directory). Created if missing. |