Skip to main content
Glama

browser_cua

Control local browsers via cua-driver to prepare sessions, inspect state, navigate, click, type, select dialogs, and manage downloads.

Instructions

Control local browsers via cua-driver (prepare, get_state, navigate, click, type, select, dialog, download). Call desktop_list_windows first to get pid and window_id, then call action='prepare' with {pid, window_id, strategy:{kind:'existing_profile'}} before action='get_state'. For get_state, pass either {pid, window_id, include_screenshot:false} (attached mode) or {target_id, tab_id, include_screenshot:false} (snapshot mode).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "browser_cua"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoAction arguments passed directly to cua-driver. Required: {pid, window_id, strategy:{kind:'existing_profile'}} for prepare; either {pid, window_id, include_screenshot:false} or {target_id, tab_id, include_screenshot:false} for get_state; {target_id, tab_id, url} for navigate.
actionYescua-driver browser action

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden. It does disclose useful behavior — the cua-driver dependency, the mandatory prepare-before-get_state sequence, and the two session modes — but says nothing about what click/type/select/dialog/download actually do, whether they are destructive, or how they report results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action inventory, then the setup sequence, then per-mode argument shapes. Dense and mostly waste-free, though the get_state parameter details duplicate what the args schema already states.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a multiplexed eight-action browser control tool with nested arguments, no annotations, and no output schema, yet only three of the eight actions (prepare, get_state, navigate) have their argument shapes documented. An agent has no guidance on what to pass for click, type, select, dialog, or download, which is a significant gap for a tool of this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the args field already documents the required shapes for prepare, get_state, and navigate, so the description largely restates structured data. It adds the sequencing relationship between actions (prepare must precede get_state), which is genuine semantic value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Control local browsers via cua-driver') and enumerates the eight supported actions, so an agent knows the scope immediately. It does not explicitly differentiate itself from the sibling browser_devtools, leaving the boundary between the two browser tools to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete prerequisite guidance: call desktop_list_windows first for pid/window_id, then action='prepare' before action='get_state'. It also names two calling modes (attached vs snapshot) with the parameter shape for each. It stops short of saying when to prefer this over browser_devtools or which actions require a prior prepare.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.