Skip to main content
Glama

browser_get

Read-onlyIdempotent

Read one element without writing JS. what: 'text' (innerText), 'html' (outerHTML), 'value' (input value; password / card / CVV / one-time-code fields answer [redacted]), 'attribute' (needs name), 'box' (x, y, width, height in the viewport), 'state' (visible, enabled, editable, checked). ref is an aria-ref or CSS selector; frame = CSS selector of the it is in.

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": {
      "page_id": "<page_id>",
      "ref": "<ref>"
    },
    "name": "browser_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
nameNo
whatNotext
frameNo
page_idYes
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description earns credit for disclosing a non-obvious behavior not in annotations: password/card/CVV/one-time-code fields return '[redacted]' rather than the real value, which affects what an agent can conclude from a read. It does not say what happens if the ref is missing or matches multiple elements.

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

Conciseness5/5

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

Two dense, front-loaded sentences with zero filler; the mode enumeration is compact and immediately scannable. Every clause adds information an agent needs to choose the right `what` and supply the right companion parameter.

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

Completeness4/5

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

For a read-only tool with full annotations and no output schema, the description effectively documents return shape per mode, which is what an agent needs since no output schema exists. The remaining gap is the required `page_id`, whose origin or format is never explained anywhere in the definition.

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

Parameters4/5

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

Schema description coverage is only 17%, so the description must carry the load, and it does for the parameters that matter: all six `what` modes are defined with their return semantics, `ref` is explained as aria-ref or CSS selector, `frame` as an iframe CSS selector, and the dependency of `attribute` on `name` is explicit. Only `page_id` and `in_workspace` are left unexplained, and `in_workspace` is already documented in the schema.

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

Purpose5/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 element') plus the key differentiator 'without writing JS', which separates it from script-execution siblings like browser_evaluate. An agent knows exactly what it gets: a single element's text, HTML, value, attribute, box, or state.

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?

The 'without writing JS' framing clearly signals this is the tool for inspection reads rather than evaluation, and the enumerated `what` modes tell the agent which read it should request. It stops short of naming an alternative for cases the modes don't cover (e.g. multi-element queries), leaving that to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.