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.
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 |
Input Schema (JSON Schema)
{
"properties": {
"port": {
"description": "Optional: Custom port number if not using default Flutter debug port 8181",
"type": "number"
},
"selectionId": {
"description": "ID of the widget to select",
"type": "string"
}
},
"required": [
"selectionId"
],
"type": "object"
}