inspector_get_parent_chain
Retrieve the parent widget chain for a specified widget ID in Flutter apps, aiding in debugging widget tree structures. Supports custom debug port configurations.
Instructions
RPC: Get the parent chain for a widget (ext.flutter.inspector.getParentChain). Connects to the default Flutter debug port (8181) unless specified otherwise.
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": {
"objectId": "<objectId>"
},
"name": "inspector_get_parent_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectId | Yes | ID of the widget to get parent chain for | |
| port | No | Optional: Custom port number if not using default Flutter debug port 8181 |