get_parent_chain
Walk up a Figma node's parent chain to return id, name, and type at each level for hierarchy mapping.
Instructions
Walk up the parent chain of a node, returning id/name/type at each level.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"nodeId": "<nodeId>"
},
"name": "get_parent_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| maxDepth | No | ||
| stopAtId | No |