Skip to main content
Computer is an Agent-only capability. It cannot be attached to MCP gateways due to its sensitive nature. Only agents can access computer control.
Computer capability gives agents full programmatic control of a desktop environment. Useful for complex tasks requiring visual feedback and interactive control.

Key Features

  • Screenshots - Capture current screen state
  • Mouse Control - Move, click, drag operations
  • Keyboard Input - Type text, press keys
  • Screen Navigation - Scroll, zoom, multi-window
  • Real-time Feedback - Visual loop with agent decisions
  • State Tracking - Remember screen positions

How to Enable

For Agents Only

  1. Agents > Select Agent > Settings > Capabilities
  2. Search for Computer
  3. Click Attach
  4. Save
Computer cannot be attached to MCP gateways. It’s agent-exclusive for security reasons.

Usage Examples

Take Screenshot

Returns PNG image of desktop with dimensions and visible elements.

Click on Element

Agent:
  1. Analyzes screenshot
  2. Identifies button coordinates
  3. Executes click
  4. Captures new screenshot

Fill Form

Agent:
  1. Screenshots form
  2. Identifies input fields
  3. Clicks on username field
  4. Types username
  5. Clicks on password field
  6. Types password
  7. Clicks submit button
Agent works through steps with visual feedback.

Screen Coordinates

Agent receives screen coordinates for all elements:
Agent can:
  • Click at coordinates
  • Drag between points
  • Identify text positions
  • Calculate relative positions

Interaction Types

Mouse Actions

  • click(x, y) - Single click
  • double_click(x, y) - Double click
  • right_click(x, y) - Right/context click
  • drag(x1, y1, x2, y2) - Drag from point to point
  • move(x, y) - Move cursor without clicking
  • scroll(direction, amount) - Scroll up/down/left/right

Keyboard Actions

  • type(text) - Type text string
  • key(name) - Press single key (Enter, Tab, Escape, etc.)
  • hotkey(mod, key) - Keyboard shortcut (Ctrl+C, Cmd+V, etc.)
  • screenshot() - Capture current screen
  • wait(seconds) - Wait for page to load
  • maximize() - Maximize window
  • minimize() - Minimize window

Size Tiers

Each Computer instance is a dedicated virtual machine. Choose a size based on your workload:

Supported Operating Systems

  • Ubuntu 24.04, Ubuntu 22.04
  • Debian 12, Debian 11

Configuration

Optional agent specifications:

Browser Subsystem

Computer includes an optional stateful browser that persists sessions, cookies, and navigation state across tool calls. This is disabled by default — set browser_enabled: true to activate it.

Browser Tools

When the browser subsystem is enabled, the agent gains these tools:

Stateful vs Stateless Browser

Key difference: The Computer browser subsystem maintains state (cookies, login sessions, tabs) across calls. The standalone Browser capability is stateless — each call starts fresh.

Domain Allowlist

Use browser_allowed_domains to restrict which sites the browser can visit. An empty list (default) allows all domains. When set, navigation to domains not in the list is blocked.

Resource Limits

Cost

For current pricing details, see Pricing. Monitor in Account > Usage dashboard.

Common Use Cases

Web Application Testing

Automation

Data Entry

Visual Inspection

Agent Loop Pattern

Typical agent workflow:
  1. Screenshot - See current state
  2. Analyze - LLM processes image
  3. Decide - LLM decides next action
  4. Execute - Perform mouse/keyboard action
  5. Repeat - Loop until task complete
Each iteration includes LLM context (screenshot analysis), so agent sees results of actions.

Best Practices

Start with Screenshot

Always capture initial state before taking actions.

Be Explicit

Use clear instructions for agent:

Handle Errors

If action doesn’t work as expected:

Use Coordinates When Possible

Provide coordinates directly when known:

Wait for State Changes

Allow time for UI updates:

Limitations

  • Desktop/Web only - Works with rendered interfaces
  • Not for APIs - Use HTTP Client for APIs
  • Visual interpretation - Relies on screenshot analysis
  • Speed - Slower than direct API calls
  • Flakiness - UI changes can break workflows

When NOT to Use

Troubleshooting

Screenshot is blank

  • Wait for page to load
  • Check window is focused
  • Verify viewport size is correct

Click doesn’t work

  • Coordinates may be off
  • Element may not be clickable
  • Try right-clicking instead
  • Screenshot again to verify state

Text not entered

  • Field may not be focused
  • Type more slowly
  • Use keyboard navigation (Tab)
  • Copy-paste if typing fails

Agent stuck in loop

  • Break task into smaller steps
  • Increase wait times
  • Provide more explicit instructions
  • Use timeout to stop execution

Privacy & Security

Computer capability has broad system access. Only use with trusted tasks.
  • Screenshots may contain sensitive data
  • Keyboard input includes all characters
  • No automatic filtering of credentials
  • Use with caution in production
Best practices:
  • Use dedicated user accounts
  • Limit to non-sensitive applications
  • Monitor screen capture content
  • Disable in production where possible

API Access

Next Steps