virtual-desktop-browser
Launch Chromium in non-headless mode inside Xvfb virtual display (fixed 1200x720x24) and automate with human-like mouse/keyboard/screenshot operations. Use for bot-resistant sites like Xiaohongshu and X/Twitter where GUI simulation is required.
- License 许可
- MIT
- 最近更新
- 2026-06-10
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- virtual-desktop-browser
- description
- Launch Chromium in non-headless mode inside Xvfb virtual display (fixed 1200x720x24) and automate with human-like mouse/keyboard/screenshot operations. Use for bot-resistant sites like Xiaohongshu and X/Twitter where GUI simulation is required.
03 SKILL.md 正文
Virtual Desktop Browser Skill
This skill provides a deterministic GUI automation runtime:
- Xvfb virtual display (
1200x720x24) - Chromium non-headless browser
- PyAutoGUI control (click/type/hotkey/scroll)
Required system packages
apt-get update
apt-get install -y xvfb chromium-browser \
libnss3 libgconf-2-4 libxss1 libasound2 \
libatk1.0-0 libatk-bridge2.0-0 libcups2 \
libdrm2 libgbm1 libgtk-3-0 libxshmfence1 x11-utils
Python dependencies
pip install -r requirements.txt
Tool surface
All tools return JSON dicts.
browser_start(url=None, display=None)— start Xvfb + Chromiumbrowser_stop()— close processesbrowser_snapshot(region=None)— screenshot as Base64 PNGbrowser_click(x, y, button='left', clicks=1, duration=0.5)— move + clickbrowser_type(text, interval=0.05, wpm=None)— type at focusbrowser_hotkey(keys, interval=0.05)— key combosbrowser_scroll(clicks=1, direction='vertical', x=None, y=None)— mouse wheelbrowser_find_image(image_path, confidence=0.8)— template matching (OpenCV)browser_get_pixel_color(x, y)— read RGBbrowser_activate_window(title_substring)— focus window by title
Notes
- Browser lifecycle is manual: start once, multi-step flow, then stop.
- Display auto-assigns (
:99..:199) if not provided. - Failsafe: moving mouse to bottom-right corner triggers pyautogui abort.
Language
See docs/ for translations:
04 同仓库更多 Skills
youtube-content
YouTube transcripts to summaries, threads, blogs.
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
touchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.