Loading...
Loading...
Build and run Gemini 2.5 Computer Use browser-control agents with Playwright. Use when a user wants to automate web browser tasks via the Gemini Computer Use model, needs an agent loop (screenshot → function_call → action → function_response), or asks to integrate safety confirmation for risky UI actions.
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