# interact-with-browser > a CLI for intearcting with browser - Author: Richard Anaya - Repository: richardanaya/blueprint-research - Version: 20260201130316 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/richardanaya/blueprint-research - Web: https://mule.run/skillshub/@@richardanaya/blueprint-research~interact-with-browser:20260201130316 --- --- name: interact-with-browser description: a CLI for intearcting with browser license: MIT compatibility: opencode metadata: audience: testing --- BE SURE TO CLEAN UP SCREEN SHOTS AFTER YOU ARE DONE WITH EVERYTHING IF THIS NEEDS TO BE INSTALLED ``` npm install -g agent-browser agent-browser install # to get chromium downloaded ``` agent-browser open example.com agent-browser snapshot # Get accessibility tree with refs agent-browser click @e2 # Click by ref from snapshot agent-browser fill @e3 "test@example.com" # Fill by ref agent-browser get text @e1 # Get text by ref agent-browser screenshot page.png agent-browser close Traditional Selectors (also supported) agent-browser click "#submit" agent-browser fill "#email" "test@example.com" agent-browser find role button click --name "Submit" Commands Core Commands agent-browser open # Navigate to URL (aliases: goto, navigate) agent-browser click # Click element agent-browser dblclick # Double-click element agent-browser focus # Focus element agent-browser type # Type into element agent-browser fill # Clear and fill agent-browser press # Press key (Enter, Tab, Control+a) (alias: key) agent-browser keydown # Hold key down agent-browser keyup # Release key agent-browser hover # Hover element agent-browser select # Select dropdown option agent-browser check # Check checkbox agent-browser uncheck # Uncheck checkbox agent-browser scroll [px] # Scroll (up/down/left/right) agent-browser scrollintoview # Scroll element into view (alias: scrollinto) agent-browser drag # Drag and drop agent-browser upload # Upload files agent-browser screenshot [path] # Take screenshot (--full for full page) agent-browser pdf # Save as PDF agent-browser snapshot # Accessibility tree with refs (best for AI) agent-browser eval # Run JavaScript agent-browser close # Close browser (aliases: quit, exit) Get Info agent-browser get text # Get text content agent-browser get html # Get innerHTML agent-browser get value # Get input value agent-browser get attr # Get attribute agent-browser get title # Get page title agent-browser get url # Get current URL agent-browser get count # Count matching elements agent-browser get box # Get bounding box Check State agent-browser is visible # Check if visible agent-browser is enabled # Check if enabled agent-browser is checked # Check if checked Find Elements (Semantic Locators) agent-browser find role [value] # By ARIA role agent-browser find text # By text content agent-browser find label