get_design_context
Retrieve design-to-code context for a Figma node or current selection, including layout, styles, variables, and a rendered PNG screenshot.
Instructions
Get full design-to-code context (deep node tree, computed layout, fills, strokes, typography, effects, bound variables, color/font summary, plus a visual PNG screenshot) for a nodeId or current selection.
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_design_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | Target node ID (defaults to first selected node) | |
| channel | No | Optional Figma document channel, fileKey, or documentName when multiple Figma files are open | |
| maxDepth | No | Tree depth (default 4) | |
| screenshotScale | No | Screenshot scale (default 1) | |
| includeScreenshot | No | Attach rendered PNG screenshot (default true) |