Skip to content

fix: handle comma-separated coordinates in move_mouse tool#262

Merged
philipph-askui merged 4 commits into
mainfrom
fix/mouve_mouse_tool
Apr 10, 2026
Merged

fix: handle comma-separated coordinates in move_mouse tool#262
philipph-askui merged 4 commits into
mainfrom
fix/mouve_mouse_tool

Conversation

@philipph-askui
Copy link
Copy Markdown
Contributor

The agent quite often passes both x/y coordinates as a single comma-separated string to the x parameter (e.g., x="330, 182" or x="54, "), causing the int() conversion to fail.
I added parsing the comma-separated string and extract both coordinates before converting to int to make it more robust

Comment thread src/askui/tools/computer/move_mouse_tool.py Outdated
Comment thread src/askui/tools/computer/move_mouse_tool.py Outdated
@philipph-askui
Copy link
Copy Markdown
Contributor Author

@programminx-askui @mlikasam-askui : I addressed the comments of you both in my last commit

@philipph-askui philipph-askui merged commit 2df7df4 into main Apr 10, 2026
1 check passed
@philipph-askui philipph-askui deleted the fix/mouve_mouse_tool branch April 10, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants