Skip to main content
Glama
Browser Controller

Browser Controller

by compnew2006

browser_batch

Run multiple browser tool calls in sequence, filling missing tab IDs and stopping on failure unless configured to continue. Use it to automate multi-step browser workflows with ordered actions.

Instructions

Run up to 50 {tool,params} calls in order. Stops on failure unless onError=continue; fills missing step tabIds except browser_tabs. Each step returns its result.

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": {
      "actions": "<actions>"
    },
    "name": "browser_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNo
actionsYes
onErrorNoWhat a failing step does: stop the batch (default) or run the rest and report every failure
timingsNoInclude step and batch timings
maxCharsNoCap on the batch's whole text; later steps are cut past it (default 120000)
preflightNoCaller evidence: kind, frozenColumns, mergedColumns, evidence; not a live check.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations present, the description still delivers real behavioral facts: strict ordering, failure stops the batch unless onError=continue, tabId is inherited from the batch except by browser_tabs, and each step returns its result. It omits whether partial results survive a stop and whether steps can nest browser_batch itself.

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 dense sentences with no filler; the ordering and step limit come first, followed by error semantics and tabId filling. Every clause carries information an agent needs.

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 6-parameter tool with nested objects and no output schema, the description is thin on returns — 'Each step returns its result' leaves the actual result shape undefined, and nothing is said about timeouts, truncation interaction with failures, or nested batching.

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 67%, so onError, timings, maxChars, and preflight are already documented in the schema. The description's genuinely additive contribution is the tabId inheritance rule for steps, which explains the top-level tabId parameter in a way the schema does not.

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: run up to 50 {tool,params} calls in order. The batching scope and the 50-step cap immediately separate it from the single-action siblings like browser_click or browser_navigate, though no sibling is named.

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 only implied by 'up to 50 calls in order' — an agent can infer this is for multi-step sequences, but nothing states when to prefer a batch over issuing individual tool calls, nor any when-not condition such as nested batches or destructive sequences.

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