Skip to content

feat(mcp): add button and clickCount options to browser_mouse_click_xy - #39368

Merged
Yury Semikhatsky (yury-s) merged 4 commits into
microsoft:mainfrom
yury-s:mcp-mouse-click-options
Feb 24, 2026
Merged

Yury Semikhatsky (yury-s) merged 4 commits into
microsoft:mainfrom
yury-s:mcp-mouse-click-options

Conversation

@yury-s

Copy link
Copy Markdown
Member

Fixes #39269

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

3046 passed, 90 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

1 flaky ⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1082 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node20`

37557 passed, 838 skipped


Merge workflow run.

@yury-s
Yury Semikhatsky (yury-s) merged commit 648589c into microsoft:main Feb 24, 2026
32 of 34 checks passed
@yury-s
Yury Semikhatsky (yury-s) deleted the mcp-mouse-click-options branch February 24, 2026 21:42
zubair-farahi121 pushed a commit to zubair-farahi121/mcp-accessibility-scanner that referenced this pull request Sep 16, 2026
Ports upstream Playwright MCP changes that extend the coordinate-based
click tool beyond a hardcoded single left click:
- microsoft/playwright#39368 (button + clickCount)
- microsoft/playwright#39465 / ac3d22d8 (delay)

browser_mouse_click_xy now accepts optional button (left/right/middle),
clickCount and delay, and uses page.mouse.click() instead of manual
move/down/up. Adds a formatObjectOrVoid codegen helper so the generated
code omits the options argument when no options are supplied.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LU9S1AgwrZ6SrFPQx4T3cx
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.

[Feature]: Extend browser_mouse_click_xy with button, clickCount, and delay options

2 participants