Skip to main content
Glama

browser_type

Type text on a ready sandbox's page: into the element with ref (from browser_snapshot), which is clicked first, or into the focused one. With submit, it presses Enter after, such as to search. It answers with the page's URL and title.

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": {
      "sandbox_id": "<sandbox_id>",
      "text": "<text>"
    },
    "name": "browser_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoThe element to type into, by its ref in the page's latest snapshot: it's clicked and focused first. The focused element when absent.
textYesThe text to type.
submitNoPress Enter after the text, such as to submit a search.
sandbox_idYesThe sandbox, `sbx_…`.

Output Schema

NameRequiredDescriptionDefault
urlYesThe page's URL.
titleYesThe page's title.
snapshotNoThe page's accessibility tree as an indented outline, one element a line: `- role "name" [ref=N]`. A ref names the element to click, type into or scroll to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, and the description confirms the mutating nature while adding useful traits: the target is clicked first, Enter is pressed when submit is set, and the side effect is a possible navigation after submission. With the safety profile already supplied, this adds moderate value but doesn't mention failure modes such as a not-ready sandbox or a stale or invalid ref.

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?

Two tight sentences front-loaded with the action and the target-selection rule, then the submit effect, then the response. No filler, though the closing sentence about URL and title duplicates the output schema.

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 four-parameter, schema-rich tool with an output schema, the description covers the essential behavior: where text goes, what submit does, and that the target may be clicked. Remaining gaps, stale refs and sandbox readiness, are minor given the structured fields already present.

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 100%, so the schema already documents ref, text, submit, and sandbox_id, including the click-then-focus and Enter behavior. The description restates that meaning in prose but adds no format, constraint, or edge-case detail beyond it, so it sits at the baseline.

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: 'Type text on a ready sandbox's page' into a ref'd or focused element. The mechanism (click-then-focus, Enter on submit) makes it clearly distinct from browser_click and browser_press_key, though it never names those siblings.

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 clear selection logic: use ref from browser_snapshot, or omit it to target the focused element, and add submit 'such as to search'. It stops short of explicit exclusions or pointing at alternative tools for non-typing interactions.

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.

Resources