get_design_context
Retrieves a target Figma subtree and CSS for design-to-code work, with controls for depth, screenshots, and output size.
Instructions
Read a target subtree and CSS for design-to-code work. For a few native properties prefer bounded get_metadata or one scoped script; do not read an entire subtree for a few descendant values. Set includeScreenshot:false unless an image is needed; screenshots are included by default. No cloud code generation.
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 | ||
| scale | No | ||
| nodeId | No | Figma node ID, e.g. 12:34. Omit to use the editor selection where supported. | |
| profile | No | Use summary for discovery; full preserves detailed fields (default). | |
| quality | No | Overview caps the longest edge at 800px; detail/default at 1600px. Explicit scale overrides this preset. | |
| maxBytes | No | Budget for returned JSON metadata; screenshots have separate limits. | |
| maxNodes | No | ||
| includeScreenshot | No |