Flutter Inspection
Inspect mounted Flutter widgets, diagnostics, search results, and observed navigation state.
Flutter instrumentation registers these read tools by default:
Tree responses use the shared compact visual-tree v2 contract. Resolve widget types through the top-level types registry and node typeId; stable string ValueKey values are exposed as automationId when available.
| Id | Purpose |
|---|---|
flutter.get_widget_tree | Return mounted elements, widget types, render-object types, keys, bounds, and child ids. |
flutter.inspect_widget | Return diagnostics and debug properties for one captured widget id. |
flutter.find_widgets | Search mounted widgets by type, key, text, or other captured values. |
flutter.get_navigation_state | Return routes observed by AnsightNavigatorObserver. |
await AnsightFlutterInstrumentation.instance.install(
registerWidgetTools: true,
);
flutter.get_widget_tree accepts maxDepth and maxNodes. Node ids are capture-oriented and should be refreshed when the widget tree changes.
Set registerWidgetTools: false when the workflow needs telemetry without framework UI inspection.