get_component_context
Read Figma component, component set, or instance properties and descendants to gather design-to-code context. Omit node ID to use the current editor selection.
Instructions
Read component, component set or instance properties and descendants.
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_component_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | 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). | |
| maxBytes | No | Budget for returned JSON metadata; screenshots have separate limits. | |
| maxNodes | No |