You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Towards #222 (could close it, but probably we should do some more work to validate it works well).
Adds the flutter driver tool, with a curated set of available commands. I decided to expose this as just a single tool, which mirrors exactly the flutter driver extension method.
The schema for this is pretty weird and complex - but in general Gemini seems to do OK with it.
Note that I only tested the tap/get_text commands, I think that is likely sufficient (really we just need to test we are forwarding commands through, we aren't doing anything special).
Also updates the workflow client to handle enums and use updated model names.
Copy file name to clipboardExpand all lines: pkgs/dart_mcp_server/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,8 +140,9 @@ For more information, see the official VS Code documentation for
140
140
|`hot_reload`| Hot reload | Performs a hot reload of the active Flutter application. This is to apply the latest code changes to the running application. Requires "connect_dart_tooling_daemon" to be successfully called first. |
141
141
|`get_widget_tree`| Get widget tree | Retrieves the widget tree from the active Flutter application. Requires "connect_dart_tooling_daemon" to be successfully called first. |
142
142
|`get_selected_widget`| Get selected widget | Retrieves the selected widget from the active Flutter application. Requires "connect_dart_tooling_daemon" to be successfully called first. |
143
-
|`set_widget_selection_mode`| Set Widget Selection Mode | Enables or disables widget selection mode in the active Flutter application. Requires "connect_dart_tooling_daemon" to be successfully called first. |
143
+
|`set_widget_selection_mode`| Set Widget Selection Mode | Enables or disables widget selection mode in the active Flutter application. Requires "connect_dart_tooling_daemon" to be successfully called first. This is not necessary when using flutter driver, only use it when you want the user to select a widget. |
144
144
|`get_active_location`| Get Active Editor Location | Retrieves the current active location (e.g., cursor position) in the connected editor. Requires "connect_dart_tooling_daemon" to be successfully called first. |
145
+
|`flutter_driver`| Flutter Driver | Run a flutter driver command |
145
146
|`pub_dev_search`| pub.dev search | Searches pub.dev for packages relevant to a given search query. The response will describe each result with its download count, package description, topics, license, and publisher. |
146
147
|`remove_roots`| Remove roots | Removes one or more project roots previously added via the add_roots tool. |
147
148
|`add_roots`| Add roots | Adds one or more project roots. Tools are only allowed to run under these roots, so you must call this function before passing any roots to any other tools. |
0 commit comments