get_design_context
Retrieve simplified design context from a Figma file or node, including layout, fills, strokes, effects, and text styles. Supports compact output for minimal token usage.
Instructions
Get the simplified design context for a Figma file or node: layout (absolute bounds, auto-layout), fills/strokes/effects, and text styles. Use format=compact for a small token footprint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Full figma.com URL (design/file/proto). node-id query param is honored. | |
| depth | No | Max traversal depth (default: full subtree). | |
| format | No | json = structured tree; compact = indented text lines. | json |
| nodeId | No | Node id, "1:2" or "1-2" form. Overrides node-id in url. | |
| fileKey | No | Figma file key (from the file URL). Provide either fileKey or url. | |
| geometry | No | Pass geometry=bounds to the REST API (vector vertices etc.). |