Skip to main content
Glama
mcp-browser-dev-tools

mcp-browser-dev-tools

by Hinaser

run_steps

Executes multiple browser actions in one ordered call, letting agents fill forms, click buttons, wait, branch, or repeat steps without separate round trips.

Instructions

Run session tools in order in one call; prefer it to separate calls for the actions you already know, such as every field of a form: [{"tool":"type","arguments":{"selector":"ref=e3","text":"Ada"}},{"tool":"click","arguments":{"selector":"text=Save"}}]. Arguments omit sessionId. Also: sleep {ms}; if {condition, then, elseIf: [{condition, then}], else, timeoutMs}, which branches on wait_for fields, checked once or until one holds within timeoutMs; repeat {steps, until, max (default 5)}, which reruns steps until until holds. All steps are validated first. A step fails when it throws or reports found: false (not inspect_element); the batch stops there unless continueOnError and reports the page's controls. A batch with actions returns one changes for the whole batch. A step that reads the page after an action or navigation first waits for the page to settle, so it needs no sleep.

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": {
      "steps": "<steps>"
    },
    "name": "run_steps"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYesAt most 50, counting nested steps.
sessionIdNo
continueOnErrorNoDefault false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.4

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does so well: all steps are validated first, a step fails on throw or found:false (except inspect_element), the batch halts unless continueOnError is set, the response reports the page's controls, and a batch with actions returns a single 'changes'. Minor gaps remain — the exact shape of that 'changes' payload and what a non-action batch returns are left implicit.

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 purpose, a motivating example, and the sessionId omission rule before the dense special-step syntax. The single long paragraph packing sleep/if/repeat grammar is information-dense but harder to scan than it could be; no sentence is genuinely wasted, though the example JSON inline inflates 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?

For a tool with no output schema and no annotations, it covers validation, failure, error continuation, return shape, and auto-wait settling behavior — enough for correct invocation. It stops short of documenting the sessionId parameter and the precise return payload, which are the remaining gaps for a 3-parameter orchestrator.

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?

Adds substantial meaning beyond the 67%-covered schema: the 50-step limit counts nested steps, nested arguments must omit sessionId, continueOnError's default and effect are spelled out, and the special 'tool' values (sleep, if, repeat) have their argument shapes described. The top-level sessionId parameter is never explained, which is the main omission.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Run session tools in order in one call' — and immediately distinguishes this batching tool from the individual action tools named in siblings (click, type, etc.) with a concrete example payload. An agent can tell exactly what this does and how it differs from calling the same actions separately.

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

Usage Guidelines5/5

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

Gives an explicit preference rule: prefer it to separate calls 'for the actions you already know, such as every field of a form', which also implies the inverse (use individual/inspection tools when you don't yet know the target). The special-step forms (sleep, if, repeat) are each described with their scope so the agent knows which construct to reach for.

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