Skip to main content
Glama

Run a batch of tool calls

browser_batch

Run 1–50 browser actions in order, validate each before execution, and stop on failure while checking expected results to make multi-step browser tasks predictable.

Instructions

Run 1-50 extension actions in order. Each {tool,args,target?,expect?} is statically validated before any action. target uniquely resolves a CSS selector or exact role/name for form_input/select_option/computer pointer actions, bound to its document. expect observes exactly one selector/text/predicate/url/fieldValue after the action, without replay. A computer step with pointerMode browser requires the extension's trusted pointer support before any action runs. Values are passed literally, as in a direct call: {{name}} text and {$param} objects are not bound here; only saved recipes bind parameters. Stops on failure/cancellation. Text contains legacy step results; structuredContent contains aggregate status, runId, timings and failedStep (1-based). Images are summarized, PDF/GIF saved. captureOnError optionally saves a failure PNG to local run history.

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
actionsYes
captureOnErrorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.1

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the whole burden and largely does: static validation before any action runs, stop-on-failure/cancellation, the pointerMode prerequisite, and the output split (text = legacy step results, structuredContent = status/runId/timings/failedStep). It stops short of stating that earlier actions persist when a later step fails, which matters for a multi-step mutation tool.

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?

Front-loaded with the core contract in the first sentence, then progressively narrower details (validation, target, expect, pointer support, literal values, failure/output). Every sentence carries operational information, though the middle is dense enough that a reader must reparse the target/expect clauses.

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

Completeness5/5

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

For a complex batching dispatcher with no annotations and no output schema, this is unusually complete: it covers validation, ordering, failure semantics, output structure, side effects on disk (PDF/GIF, captureOnError PNG), and prerequisites. The missing partial-application note is the only material omission.

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 0%, so the description must compensate, and it substantially does: it explains the action envelope, what target resolves (selector or role/name, bound to its document), what expect evaluates and when, and captureOnError's effect. However, args is left as an unexamined passthrough, and expect's interaction with the action's own result is described in compressed terms that still require schema reading.

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?

Opens with a specific verb, resource and scope: 'Run 1-50 extension actions in order', and the {tool,args,target?,expect?} shape makes clear it is a meta-dispatcher over the individual browser tools. It does not name a specific sibling to avoid (e.g. recipe_run) as the router, but the contrast with saved recipes is implicit in the parameter-binding sentence.

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 context is implied rather than stated: ordered multi-step sequences go here, and 'only saved recipes bind parameters' faintly separates it from recipe_run. There is no explicit 'use this instead of N individual calls' statement and no when-not-to-use guidance, so the agent must infer the selection rule.

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