Computer Use: Automating Browsers, Mobile & Desktop (2026) — Structured Outputs & Tools

[ ABORT TO HUD ]
SEQ. 1
SEQ. 2
SEQ. 3

Computer Use: Automating Browsers, Mobile & Desktop (2026)

⚙️ Structured Outputs & Tools 14m 300 BASE XP⌨ HANDS-ON LAB

Giving Gemini a Cursor and Keyboard

The Computer Use tool lets Gemini "see" a screenshot of a screen and "act" by generating UI actions - clicks, scrolls, key presses, drags - so agents can operate real browsers, mobile apps, and desktop software the same way a human would.

How It Works

Computer Use runs as a loop: your app sends a screenshot plus a goal, Gemini returns one suggested action (with a reasoning intent), your client executes it with an automation library like Playwright, then you send back a fresh screenshot and repeat until the task is done.

from google import genai

client = genai.Client()

interaction = client.interactions.create(
    model="gemini-3.5-flash",
    input="Search for 'Vertex AI pricing' on Google.",
    tools=[{
        "type": "computer_use",
        "environment": "browser",
        "enable_prompt_injection_detection": True
    }]
)

Supported Environments

EnvironmentUse Case
BrowserWeb form-filling, research, QA automation
MobileAndroid app navigation and testing
DesktopOS-level cursor and keyboard control

Gemini 2.0 Flash is the recommended model for Computer Use, with Gemini 2.0 Flash and Gemini 1.5 Flash also supported. Every suggested action can carry a safety_decision - require_confirmation pauses the agent for human approval on sensitive actions like payments, sending messages, or accepting legal terms.

⚠️ Preview capability: Computer Use is a Preview feature - always run agents in a sandboxed environment, enforce human-in-the-loop confirmation for consequential actions, and enable prompt injection detection when scanning untrusted screens.
⌨ HANDS-ON LABDispatch Computer Use Grounding Coordinates
⭐ +150 XP

Test multimodal UI grounding coordinates generated by Gemini Computer Use to click browser elements autonomously.

1Issue an automation prompt with code execution tools enabled to ground desktop clicks.
lab-sandbox — simulated environment
INFINITY LAB SANDBOX v2.6 — simulated shell
Type the command for the current objective. Helpers: "hint", "solution", "clear".
$
OBJECTIVE 1 / 1 — type "hint" if stuck
SYNAPSE VERIFICATION
QUERY 1 // 3
What does the Computer Use tool let Gemini do?
Only read text from a screen
"See" a screenshot and generate UI actions like clicks and keystrokes to operate software
Compile and run native desktop applications
Replace the need for any client-side code