Skip to main content
Glama

browser_mouse_drag

Drags or draws a continuous stroke through 2–100 CSS-pixel points in a browser screenshot viewport, pressing at the first point and releasing at the last to automate canvas drawing and mouse drag.

Instructions

Drags or draws a continuous stroke through 2–100 {x,y} points in CSS pixels of a recent screenshot viewport. Presses on the first and releases on the last; add intermediate points to draw on canvas. durationMs is the total stroke duration (600 ms default), split into three random phases summing that total. While held, follows straight segments without noise or overshoot. Available in fast and normal. Does not drop files or external data.

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>",
      "points": "<points>"
    },
    "name": "browser_mouse_drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYes
buttonNo
pointsYes
durationMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.4

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 full load and does so well: it discloses press-on-first/release-on-last semantics, that durationMs is split into three random phases, that held motion follows straight segments with no noise or overshoot, that fast and normal modes exist, and that file/external data drops are unsupported. Gaps are limited to error behavior and return values.

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?

Purpose is front-loaded in the first sentence, and subsequent sentences each add behavioral detail rather than restating the schema. A few clauses (e.g., the random-phase split) are dense but not filler.

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 4-parameter, annotation-free mutation tool with no output schema, the definition covers mechanism, timing, motion quality, modes, and one hard limitation. The remaining shortfall is minor: nothing is said about tabId scope, button default, or failure modes.

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 coverage is 0%, so the description has to compensate and largely does: it defines points as {x,y} in CSS pixels with a 2–100 bound, explains which point is pressed and released, and clarifies durationMs as total stroke time with a 600 ms default. tabId and button are left entirely to the schema, and no default for button is given.

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?

The description opens with a specific verb and resource: 'Drags or draws a continuous stroke through 2–100 {x,y} points in CSS pixels of a recent screenshot viewport.' That is enough to separate it from a one-point click or a press-free move, but it never names browser_mouse_click or browser_mouse_move, so differentiation is inferred rather than stated.

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?

'add intermediate points to draw on canvas' gives a concrete usage cue, and 'Does not drop files or external data' rules out one class of use. However, there is no explicit guidance on when to prefer this over browser_mouse_click/browser_mouse_move, nor any stated prerequisite (e.g., needing a recent screenshot viewport is mentioned only descriptively).

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