inspector_get_selected_widget
Retrieve detailed information about the currently selected widget in a Flutter app. Use this tool to debug and analyze widget trees, layouts, and navigation by connecting to the Flutter debug port (default 8181).
Instructions
RPC: Get information about the currently selected widget in the Flutter app. Connects to the default Flutter debug port (8181) unless specified otherwise.
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": "inspector_get_selected_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Optional: Custom port number if not using default Flutter debug port 8181 |