Get design context (Figma compatible)
get_design_contextRetrieves a layer's geometry, layout, sizing, fills, strokes, effects, typography, styles, variables, component links and interactions so code generators can build accurate UI code.
Instructions
The design context of a layer: geometry, auto layout, sizing, fills, strokes, effects, typography, styles, variables, component links and interactions — the facts a code generator needs.
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 |
|---|---|---|---|
| depth | No | ||
| nodeId | No | ||
| language | No | ||
| includeCode | No | ||
| includeProperties | No |