get_widget_tree
Retrieves the running Flutter app's current widget tree as structured data, helping you inspect on-screen widgets and identify project-specific components.
Instructions
Get the current widget tree of the running Flutter app. Returns a structured representation of all widgets on screen. Widgets marked with ★ are from your project code (not framework widgets).
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 |
|---|---|---|---|
| maxDepth | No | Maximum depth of the widget tree to return (default: 15) | |
| projectOnly | No | If true, only show widgets created by the project (skip framework internals) |