Use this skill only for this repository's AI Search Hub browser automation scripts:
scripts/yuanbao_playwright.pyscripts/longcat_playwright.pyscripts/doubao_playwright.pyscripts/qwen_playwright.pyscripts/gemini_playwright.pyscripts/grok_playwright.pyUse this skill when the user asks to:
127.0.0.1:9222 is availableRun the bundled wrapper script instead of calling the site script directly:
python3 scripts/run_web_chat.py --site doubao --prompt "Give me a short Hangzhou food guide."
Key arguments:
--site yuanbao|longcat|doubao|qwen|gemini|grok--prompt "..." required--repo-root if the current working directory is not the repo root--cdp-http http://127.0.0.1:9222 to reuse an existing DevTools endpoint--browser-path to force a specific Chromium-family browser binary--debug-profile-dir to control the isolated debug profile location--user-data-source to force a specific source browser user-data-dir--output to control the destination fileThe wrapper script is the low-freedom path and should be preferred over hand-rolling the sequence.
It does the following:
--cdp-http if 9222 is already listening.about:blank startup tab behind.yuanbao, longcat, doubao), opens the target site and checks for login UI before dispatching the site-specific script.qwen, gemini, grok), opens the target site, enters the prompt, and waits for a reply.--cdp-url.doubao: requires a logged-in session. The visitor page usually does not answer prompts.yuanbao: login may appear as a modal with QQ, WeChat, or last-login buttons even when the page shell is visible.longcat: the wrapper prefers a new chat before sending unless --no-new-chat is requested downstream.qwen, gemini, grok: each has its own Playwright entry script backed by a shared site-chat core. gemini first targets the visible composer and attempts the send once before falling back to the login-wait loop, because the landing page exposes a real textbox even when the account is not yet in a usable chat state.http://127.0.0.1:9222/json/version may otherwise return a false 502.共 1 个版本