Loading...
Loading...
Browse the web, read page content, click buttons, fill forms, and take screenshots using the webcli headless browser. Use when the user asks to visit a website, gather information from a web page, or interact with a web app.
npx skill4agent add erdinccurebal/webcli webcliwebclinpm install -g @erdinccurebal/webcli
npx playwright install chromiumwebcli go <url> # Navigate to URL (auto-starts daemon)
webcli go <url> -w networkidle # Wait for network to settle
webcli go <url> -t mytab # Open in named tab
webcli back # Go back in history
webcli forward # Go forward
webcli reload # Reload current pagewebcli source # Get full visible text of the page
webcli links # List all links (text + href)
webcli forms # List all forms with their inputs
webcli html <selector> # Get innerHTML of element
webcli attr <selector> <attribute> # Get element attribute valuewebcli click "<visible text>" # Click element by visible text
webcli clicksel "<css selector>" # Click element by CSS selector
webcli fill "<selector>" "<value>" # Fill an input field (preferred for forms)
webcli type "<text>" # Type with keyboard (for focused element)
webcli select "<selector>" "<val>" # Select dropdown option
webcli press Enter # Press keyboard key (Enter, Tab, Escape...)
webcli focus "<selector>" # Focus an elementwebcli wait "<selector>" # Wait for CSS selector to be visible
webcli waitfor "<text>" # Wait for text to appear on page
webcli sleep 2000 # Sleep for N millisecondswebcli screenshot # Take screenshot (returns path)
webcli screenshot -o page.png # Save to specific filewebcli viewport 1920 1080 # Change viewport size
webcli useragent "<string>" # Change user agentwebcli tabs # List open tabs
webcli quit # Close current tab
webcli quit -t mytab # Close specific tab
webcli status # Show daemon info (PID, uptime, tabs)
webcli stop # Stop daemon and close browser-t, --tab <name>--json--timeout <ms>webcli go <url>webcli sourcewebcli clickwebcli fillwebcli presswebcli sourcewebcli screenshotwebcli fillwebcli clickwebcli clickselwebcli press Enterwebcli sleep 1000webcli sourcewebcli go https://site-a.com -t research
webcli go https://site-b.com -t reference
webcli source -t research # Read from specific tab
webcli source -t referencewebcli sleep 2000webcli sourcewebcli stopwebcli wait "<selector>"webcli sourcewebcli fillwebcli typewebcli clickwebcli clickselwebcli sleep