get_widget_tree
Retrieve a JSON representation of the live Flutter widget tree. Use summaryOnly to filter the output, enabling quick inspection of the current UI structure for debugging or test assertions.
Instructions
Returns a JSON representation of the widget tree.
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_widget_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summaryOnly | No | If true, returns a filtered tree |