Get Figma design context
get_design_contextReads layout, styles, text, components and variable bindings for a selected Frame or node ID via the local Plugin API, so agents can inspect design context without the Figma REST API.
Instructions
Read layout, styles, text, components and variable bindings for a selected Frame or a node ID. Uses the local Plugin API, not the Figma REST API.
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 | Optional Figma node ID. Omit to use the single selected node. | |
| fileKey | No | Optional key of the Figma file to target. Omit to use the most recently active file; see get_plugin_status. | |
| maxDepth | No | ||
| maxNodes | No |