get_figma_context
Retrieve current squeezed Figma design context and optional PNG preview in nine code formats, with adjustable compression levels for AI coding workflows.
Instructions
Get the current squeezed Figma design context + optional multimodal PNG preview. Supports 9 output formats and on-the-fly compression levels (full, compact, sparse).
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_figma_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | Output format: jsx, shadcn, vue, svelte, md, html, tailwind, spec (DESIGN.md), or dtcg (W3C tokens.json). Defaults to md. | |
| compression | No | Optional compression override: full (all classes), compact (fold repeated siblings, ideal for reasoning models), sparse (DOM skeleton + Vision). | |
| include_metadata | No | Include layer name, token counts, and savings metadata. Defaults to true. |