Skip to main content
Glama

browser_read_control

Read one control's native DOM and accessibility values, rendered text, raw state, descriptions, and exposed options in AX order, keeping existing snapshot refs valid.

Instructions

Read one explicit control: separate native DOM/AX values, rendered text, raw state and explicit descriptions; related popups, active descendant and currently exposed options in AX order. Bounded refs preserve the existing snapshot. No inferred disabled reason, complete virtual list, application commit or atomic DOM/AX view.

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": {
      "tab_handle": "<tab_handle>"
    },
    "name": "browser_read_control"
  }
}

Input Schema

NameRequiredDescriptionDefault
nthNoZero-based match index.
refNo
nameNoExact AX name; role only.
frameNoChild frame; see shared locator rules.
frame_idNoSelector frame; default main.
selectorNoLocator query.
max_charsNo
tab_handleYes
timeout_msNo
max_optionsNo
selector_typeNoDefault css.
popup_selectorNoUnique CSS popup in control frame; default controls/owns relations or descendants.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.34.0
    • changedInput schema / properties / frame / description
      Previous value: -"Child frame: at least one of url/title/path. url/title exact; path=unique nested CSS iframe steps (e.g. [\"#frame\"]); exclusive with frame_id."New value: +"Child frame; see shared locator rules."
    • changedInput schema / properties / name / description
      Previous value: -"role only: exact AX name; empty allowed."New value: +"Exact AX name; role only."
    • changedInput schema / properties / nth / description
      Previous value: -"Selector only: zero-based DOM index, AX tree order for role."New value: +"Zero-based match index."
    • changedInput schema / properties / popup_selector / description
      Previous value: -"Optional unique CSS popup in the control frame; otherwise use browser-resolved controls/owns relations and control descendants."New value: +"Unique CSS popup in control frame; default controls/owns relations or descendants."
    • changedInput schema / properties / selector / description
      Previous value: -"Query by selector_type; role example: selector=\"link\", name=\"Claim\"."New value: +"Locator query."
    • changedInput schema / properties / selector_type / description
      Previous value: -"Default css. label: exact associated HTML label, whitespace normalized. placeholder: exact attribute."New value: +"Default css."
  2. Addedv0.28.2

TDQS

B3.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that bounded refs preserve the existing snapshot (workflow prerequisite), that popups/active-descendant/options are read in AX order, and four explicit non-guarantees (no inferred disabled reason, no complete virtual list, no application commit, no atomic DOM/AX view). These negatives are valuable because they warn the agent not to trust the returned DOM/AX view as a consistent atomic state. Missing: read-only confirmation, permission/auth needs, error or stale-ref behavior.

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

Conciseness3/5

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

Purpose is front-loaded and every sentence carries distinct content (output enumeration, ref/snapshot relationship, non-guarantees), so nothing is padding. However, the first sentence is a long semicolon-chained list of return fields in dense AX jargon, which slows comprehension of the primary purpose. Structurally adequate but not optimally readable.

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

Completeness3/5

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

For a 12-parameter, nested-object tool with no annotations and no output schema, the description should explain both the target-locating model (how refs/selectors/nth/frames combine) and the returned shape. It partially covers the return shape and ref/snapshot linkage, but leaves locator precedence (ref vs selector vs name vs nth) and frame/popup resolution implicit. Enough to orient an agent, not enough to guarantee correct invocation.

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 coverage is 58%, so roughly half the parameters are undocumented in the schema while the description supplies meaning only for a few: refs are "bounded" and tied to an existing snapshot, options are capped via the exposed-options behavior, and popup reading maps to popup_selector. Parameters like nth, name, frame/frame_id, selector_type, timeout_ms and max_chars get no added meaning beyond the schema. That lands at the 3 baseline for partial coverage with partial compensation.

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 and resource ("Read one explicit control") and enumerates what it returns: native DOM/AX values, rendered text, raw state, explicit descriptions, related popups, active descendant and exposed options in AX order. This distinguishes it from page-level readers like browser_read_text or browser_snapshot, though it never names a sibling explicitly. The telegraphic phrasing makes the exact scope harder to parse than it needs to be.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not guidance and no alternative is named, even though browser_read_text and browser_snapshot are obvious candidates an agent must choose between. The scope limits ("No inferred disabled reason, complete virtual list, application commit or atomic DOM/AX view") constrain what the tool guarantees rather than telling the agent when to select it. Usage must be inferred from "one explicit control" plus the ref-bounded behavior.

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