Skip to main content
Glama

Run several browser steps

task_batch
Destructive

Run up to 10 steps on the current page in one call, in order: for example fill several form fields and then click submit. Use refs only from the current observation. Every step is authorized, executed and verified exactly as the single action tools do it, and pauses follow the same Permissions. The batch stops at the first step that fails, waits for the user's approval, has an uncertain effect, or loads a new document (later refs would no longer match); its result lists each step (batch.steps) and returns the newest observation. Continue from that observation. Navigation, tabs, uploads, user steps and finishing the task are not batch steps.

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": {
      "task_id": "<task_id>",
      "interaction_generation": "<interaction_generation>",
      "actions": "<actions>"
    },
    "name": "task_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionsYes
task_idYes
interaction_generationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly=false, destructive=true, openWorld=true) by disclosing the stop conditions in detail: the first failing step, a permissions pause, an uncertain effect, or a new document load. It also explains that steps are authorized/verified like single actions and that stale refs after navigation are the reason for the document-load stop, which is exactly the behavioral context an agent needs before committing a batch.

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 capability and the limit, then stop conditions, then the return shape, then exclusions — a logical order with no filler. One sentence leans on the undefined shorthand 'the same Permissions' and 'the single action tools', which costs a little precision without much length.

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?

With no output schema, the description usefully covers the return value ('its result lists each step (batch.steps) and returns the newest observation'), which is essential for continuing after a batch. It is missing only peripheral detail, such as what a partially-failed batch reports per step, which is minor for this complexity.

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 reported at 0%, so the description carries some burden; it clarifies the ref constraint and the 10-step cap and shows a fill-then-submit example. It says nothing about task_id or interaction_generation, nor about how per-step kinds map to the array fields, leaving most parameter meaning to the nested schema.

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?

A concrete verb and resource ('Run up to 10 steps on the current page in one call, in order') with a worked example, so an agent knows this batches sequential actions rather than performing a single one. It contrasts itself with 'the single action tools' generically, but never names a concrete sibling (e.g. browser_run) that could also execute steps, leaving some ambiguity for tool selection.

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?

Clear positive guidance ('Use refs only from the current observation', 'Continue from that observation') plus explicit exclusions: 'Navigation, tabs, uploads, user steps and finishing the task are not batch steps.' This routes agents away from the tool in the right cases, though it does not name the alternative tools to use instead for those excluded operations.

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