Skip to content

CLI click can't right-click, middle-click, or hold modifier keys #1630

Closed

Description

@kevingatera

What happens

agent-browser click only ever performs a plain left click. There is no way to open a page's context menu, middle-click a link, or hold Ctrl/Shift while clicking (for example Ctrl+click to open a link in a background tab, or Shift+click to extend a selection). The same limitation applies to dblclick.

Steps to reproduce

  1. Open a page that shows a custom menu on right-click.
  2. Try to trigger it: agent-browser click <selector> only left-clicks, and the command accepts no button or modifier options.
  3. There is likewise no way to middle-click or Ctrl+click a link from the CLI.

Expected

Click commands can target the right and middle mouse buttons and hold modifier keys, matching what a real mouse can do.

Tested on Linux with the Chrome engine, current main (0.33.0).

Activity

  1. locked and limited conversation to collaborators on Nov 3, 2026
  2. converted this issue into a discussion #2371 on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions