Loading...
Loading...
使用Playwright构建并运行Gemini 2.5 Computer Use浏览器控制代理。适用于用户希望通过Gemini Computer Use模型自动化网页浏览器任务、需要代理循环(截图→函数调用→操作→函数响应),或者要求为有风险的UI操作集成安全确认的场景。
npx skill4agent add am-will/codex-skills gemini-computer-usecp env.example env.sh
$EDITOR env.sh
source env.shpython -m venv .venv
source .venv/bin/activate
pip install google-genai playwright
playwright install chromiumpython scripts/computer_use_agent.py \
--prompt "Find the latest blog post title on example.com" \
--start-url "https://example.com" \
--turn-limit 6COMPUTER_USE_BROWSER_CHANNELCOMPUTER_USE_BROWSER_EXECUTABLECOMPUTER_USE_BROWSER_EXECUTABLEfunction_callsafety_decisionrequire_confirmationfunction_response--excludescripts/computer_use_agent.pyreferences/google-computer-use.mdenv.example