Builds and runs Gemini 2.5 Computer Use browser-control agents with Playwright. Use for automating web browser tasks via the Gemini Computer Use model, agent loops, or safety confirmation for risky UI actions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/am-will-codex-skills-5:gemini-computer-useThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
1. Source the env file and set your API key:
Source the env file and set your API key:
cp env.example env.sh
$EDITOR env.sh
source env.sh
Create a virtual environment and install dependencies:
python -m venv .venv
source .venv/bin/activate
pip install google-genai playwright
playwright install chromium
Run the agent script with a prompt:
python scripts/computer_use_agent.py \
--prompt "Find the latest blog post title on example.com" \
--start-url "https://example.com" \
--turn-limit 6
COMPUTER_USE_BROWSER_CHANNEL.COMPUTER_USE_BROWSER_EXECUTABLE.If both are set, COMPUTER_USE_BROWSER_EXECUTABLE takes precedence.
function_call actions in the response.safety_decision is require_confirmation, prompt the user before executing.function_response objects containing the latest URL + screenshot.--exclude to block risky actions you do not want the model to take.scripts/computer_use_agent.pyreferences/google-computer-use.mdenv.examplenpx claudepluginhub am-will/codex-skillsBuilds and runs Gemini 2.5 Computer Use browser-control agents with Playwright. Use for automating web browser tasks via the Gemini Computer Use model, agent loops, or safety confirmation for risky UI actions.
Automates browser tasks via Playwright CLI for AI agents: navigate pages, take snapshots/screenshots, fill forms, click elements from command line. Use with shell access.