inspect_widget
Retrieves render details, constraints, size, and state for a specific Flutter widget by ID so you can diagnose layout and state issues from the widget tree.
Instructions
Get detailed information about a specific widget by its ID (obtained from get_widget_tree). Returns render details, constraints, size, and state.
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": {
"widgetId": "<widgetId>"
},
"name": "inspect_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widgetId | Yes | The widget ID from the widget tree (valueId field) |