get_block
Fetches compact CSS-like design descriptions and aggregated tokens for Figma blocks, checking local cache first and calling the Figma API only on cache miss or refresh.
Instructions
Returns a compact CSS-like description and aggregated design tokens for a block (or both desktop and mobile versions). Checks local disk cache first (including previously cached parent pages or sections) and calls Figma API only on cache miss or when refresh=true. Provide at least one of: desktop, mobile, url, or urls.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Single Figma link with node-id without a specific viewport label | |
| urls | No | Multiple Figma links with node-id (whole pages, sections, or individual blocks) | |
| mobile | No | Figma link to the mobile version (page or block) with node-id | |
| desktop | No | Figma link to the desktop version (page or block) with node-id | |
| refresh | No | Force refresh from Figma API instead of reading from local cache |