Skip to content

About

agent-browser plugin: human-rate mouse and keyboard through agent-hands (launch.mutate + command.run)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agent-browser-plugin-hands

Human-rate mouse and keyboard for agent-browser sessions, through agent-hands. Bezier mouse paths with Fitts-law timing, lognormal keystroke dwell and flight, wheel-burst scrolling. Works alongside agent-browser; it replaces nothing.

npm i -g agent-hands
agent-browser plugin add yassiEmp/agent-browser-plugin-hands

Two capabilities:

  • launch.mutate runs on every local launch and adds --disable-blink-features=AutomationControlled and --force-renderer-accessibility, the flags agent-hands launch uses. No navigator.webdriver, and a page accessibility tree for the OS lane.
  • command.run exposes agent-hands verbs:
agent-browser plugin run hands hands.snapshot --payload '{"port":9222}'
agent-browser plugin run hands hands.click    --payload '{"port":9222,"ref":"@e5"}'
agent-browser plugin run hands hands.fill     --payload '{"port":9222,"label":"Email","value":"[email protected]"}'
agent-browser plugin run hands hands.press    --payload '{"port":9222,"key":"Enter"}'
agent-browser plugin run hands hands.scroll   --payload '{"port":9222,"pixels":600}'
agent-browser plugin run hands hands.run      --payload '{"port":9222,"args":["wait","--text","Signed in"]}'

Name the browser the way agent-hands does: port (a CDP port), profile (a user-data-dir), session (an agent-browser pool name), or browser (edge, chrome, ...). With none, agent-hands resolves its own pin.

Targets: ref (from hands.snapshot), selector, text, label, or xy: [x, y]. Options: speed (1 human, 1.6 brisk, 0.7 slow), force.

Each call returns agent-hands' --json payload as data. A refusal (covered target, sign-in page while flagged, missing argument) comes back as success: false with the message agent-hands printed.

Manual configuration, if you prefer agent-browser.json:

{
  "plugins": [
    { "name": "hands", "command": "agent-browser-plugin-hands", "capabilities": ["launch.mutate", "command.run"] }
  ]
}

Why a plugin and not a flag: agent-browser keeps input dispatch in core, and the gesture model here is a separate tool with its own evidence page. See agent-hands/docs/evidence.md.

MIT.

About

agent-browser plugin: human-rate mouse and keyboard through agent-hands (launch.mutate + command.run)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages