Browser Automation Skill for OpenClaw - Playwright-based browser control without extension
npx skills add https://github.com/sophieguanongit/openclaw-browser-automation --skill browser-automation使用 CLI 安装这个技能,并在你的工作区中直接复用对应的 SKILL.md 工作流。
A Playwright-based browser automation skill for OpenClaw. Control browsers to navigate, click, fill forms, take screenshots, and more.
--remote-debugging-port=9222)cd ~/.openclaw/skills
git clone https://github.com/yourusername/openclaw-browser-automation.git browser-automation
cd browser-automation
npm install
In OpenClaw, simply tell your agent:
handleNavigate({url}) - Navigate to URL (reuses current page)handleNewPage({url}) - Open new pagehandleScreenshot({selector?, fullPage?}) - Take screenshothandleGetContent({selector?}) - Get page HTMLhandleClose() - Close current pagehandleClick({selector}) - Click elementhandleFill({selector, value}) - Fill form fieldhandleType({selector, text}) - Type text (appends)handleSelect({selector, value}) - Select dropdown optionhandleCheck({selector, checked?}) - Check/uncheck checkboxhandleWait({selector, timeout?}) - Wait for elementhandleWaitForNavigation() - Wait for page navigationhandleGetText({selector}) - Get element texthandleGetValue({selector}) - Get form valuehandleGetAttribute({selector, attribute}) - Get attributehandleEvaluate({script}) - Execute JavaScripthandleUpload({selector, filePath}) - Upload filehandlePress({key}) - Press keyhandleHover({selector}) - Hover elementhandleScroll({direction, amount?}) - Scroll pagehandleStatus() - Get browser statushandleCloseBrowser() - Close/disconnect browserSupports CSS selectors and text selectors:
#login-btn, .submit, input[name="email"]text=Login, text=Submitbutton:has-text("Submit")To use your existing Chrome with all login states:
# Windows
chrome.exe --remote-debugging-port=9222
# Mac
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
# Linux
google-chrome --remote-debugging-port=9222
MIT