Gemini computer use

From sundial-org/awesome-openclaw-skills · View interactive version

Gemini computer use is an AI agent skill from the GitHub repository sundial-org/awesome-openclaw-skills. 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 ac

How to use this skill

Skill file

Gemini Computer Use

Quick start

  1. Source the env file and set your API key:

```bash

cp env.example env.sh

$EDITOR env.sh

source env.sh

```

  1. Create a virtual environment and install dependencies:

```bash

python -m venv .venv

source .venv/bin/activate

pip install google-genai playwright

playwright install chromium

```

  1. Run the agent script with a prompt:

```bash

python scripts/computer_use_agent.py \

--prompt "Find the latest blog post title on example.com" \

--start-url "https://example.com" \

--turn-limit 6

```

Browser selection

If both are set, COMPUTER_USE_BROWSER_EXECUTABLE takes precedence.

Core workflow (agent loop)

  1. Capture a screenshot and send the user goal + screenshot to the model.
  2. Parse function_call actions in the response.
  3. Execute each action in Playwright.
  4. If a safety_decision is require_confirmation, prompt the user before executing.
  5. Send function_response objects containing the latest URL + screenshot.
  6. Repeat until the model returns only text (no actions) or you hit the turn limit.

Operational guidance

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.