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.

IdPurpose
flutter.get_widget_treeReturn mounted elements, widget types, render-object types, keys, bounds, and child ids.
flutter.inspect_widgetReturn diagnostics and debug properties for one captured widget id.
flutter.find_widgetsSearch mounted widgets by type, key, text, or other captured values.
flutter.get_navigation_stateReturn 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.