inspector_set_selection_by_id
Select a specific widget by its ID in a Flutter app for debugging. Connects to the default Flutter debug port (8181) or a custom port if specified.
Instructions
RPC: Set the selected widget by ID (ext.flutter.inspector.setSelectionById). Connects to the default Flutter debug port (8181) unless specified otherwise.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"selectionId": "<selectionId>"
},
"name": "inspector_set_selection_by_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Optional: Custom port number if not using default Flutter debug port 8181 | |
| selectionId | Yes | ID of the widget to select |