xvfb-chrome
在Linux服务器上使用Chrome浏览器(无头/有头模式)配合xvfb运行,可连接chrome-devtools MCP进行浏览器自动化
Why use this skill?
Learn how to run Chrome on Linux servers using Xvfb and OpenClaw. Automate web tasks, screenshots, and interactions via DevTools MCP seamlessly.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/codinglink/xvfb-chromeWhat This Skill Does
The xvfb-chrome skill provides a robust framework for managing Google Chrome instances on headless Linux environments. It leverages Xvfb (X Virtual Framebuffer) to create a virtual display, allowing browsers that normally require a GUI to function seamlessly on CLI-only servers. By integrating with the chrome-devtools MCP, it transforms your server into a powerful browser automation engine, capable of navigating, interacting, and extracting data from web pages.
Installation
To install this skill, use the following command in your OpenClaw environment:
clawhub install openclaw/skills/skills/codinglink/xvfb-chrome
Ensure you have Google Chrome and xvfb pre-installed on your Linux system before initiating the installation.
Use Cases
- Automated Web Scraping: Navigate complex websites that require JavaScript rendering, which simple HTTP requests cannot handle.
- Visual Testing: Capture high-quality screenshots of web applications at specific resolutions (e.g., 1080p) for visual regression testing.
- Browser Interaction: Automate workflows such as filling out forms, clicking buttons, and handling authentication loops using chrome-devtools.
- Server-Side UI Automation: Run legacy web-based internal tools that require a visual browser interface within a restricted server environment.
Example Prompts
- "Start a new Chrome session on display 99, navigate to example.com, and take a full-page screenshot saved to /tmp/screenshot.png."
- "I need to automate a login process; please connect to the running Chrome instance on port 9222 and find the element with ID 'login-btn' to perform a click."
- "Set up a 1920x1080 virtual display for Chrome and list all currently open browser tabs using the devtools MCP."
Tips & Limitations
- Performance: Always remember to use
--disable-gpuand--no-sandboxflags when running Chrome on a server to avoid crash loops and permission errors. - Cleanup: Regularly clean up the
/tmp/chrome-profiledirectory to prevent disk space issues, and usepkillcommands to ensure old browser processes do not hog system resources. - Display Management: Utilize the
-aflag withxvfb-runto avoid conflicts when multiple automation tasks are running on the same machine. - Headless Mode: Use
--headless=newfor high-performance scraping, but switch to standard mode when you need full interaction capabilities via DevTools.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-codinglink-xvfb-chrome": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, code-execution