Skip to main content
Glama
Browser Controller

Browser Controller

by compnew2006

browser_type

Types text or key sequences into a target or focused browser element, with options to clear existing content, submit with Enter, and verify expected URL or text.

Instructions

Type into target or focused element. key sends one key/combo or a space-separated sequence. clear empties first; submit presses Enter afterward.

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

Input Schema

NameRequiredDescriptionDefault
keyNo
textNo
clearNo
tabIdYes
expectNo
submitNo
targetNoTarget.
observeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.0

TDQS

A3.5/5.0
Behavior3/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 disclose real behavior: `clear` empties the field first, `submit` presses Enter afterward, and `key` accepts a sequence. However, it says nothing about the `expect` wait semantics, the `observe: diff` mode, or what happens on timeout/missing element — significant for a mutation tool with zero annotation coverage.

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?

Three short sentences, front-loaded with the core action, then the two modifier behaviors. Zero filler and no repetition of the tool name.

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?

For an eight-parameter tool with nested objects, no annotations, and no output schema, the description leaves too much uncovered — the required `tabId`, the `expect` verification object, and the `observe: diff` enum are all undocumented anywhere, and post-action return behavior is unstated.

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 13% (the lone described param is `target`, labeled just 'Target.'), so the description must compensate. It meaningfully explains four of eight parameters (`key`, `text` implicitly, `clear`, `submit`) and the target-vs-focused distinction, though it leaves the required `tabId`, `expect`, and `observe` entirely unexplained.

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: typing into a target element or the focused element, with a clear note that `key` handles single keys/combos or a space-separated sequence. It is clear what the tool does, but it never distinguishes itself from the sibling `browser_fill`, which an agent could plausibly confuse with text entry.

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

Usage Guidelines3/5

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

Usage is implied by 'target or focused element' — the agent can infer it types into an already-located element or whatever has focus. There is no explicit when-to-use vs. `browser_fill`, no prerequisites (e.g., element must be visible/enabled), and no stated failure conditions.

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