Skip to main content
Glama

browser_drag

Destructive

Simulate human-like pointer drags along coordinate waypoints, pressing, moving, and releasing for multi-segment drags or signature pads. Generate precise strokes from snapshot coordinates.

Instructions

Press, move, and release the pointer along one or more strokes.

Each stroke is a list of [x, y] viewport-coordinate waypoints. The pointer travels to the first waypoint, presses, moves through the rest with human-like motion, and releases. Multiple strokes lift between each -- use this for signature pads or multi-segment drags.

Coordinates come from browser_snapshot's at: [x, y] values or from inspecting the target element's bounding box.

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": {
      "strokes": "<strokes>"
    },
    "name": "browser_drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
browserNoDefaults to `main`; `support` is the helper beside it.
strokesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.74.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=true, so safety is covered. Beyond that, the description discloses mechanics annotations cannot: the press-move-release sequence, 'human-like motion,' and that the pointer lifts between strokes. It omits failure behavior (e.g., what happens if a waypoint lands outside the viewport) and permission or focus requirements.

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?

Six short lines, front-loaded with the single-sentence definition of the operation, followed by the stroke format and then the practical coordinate-sourcing tip. Every sentence carries information an agent needs, with no restating of the tool name or 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 two-parameter mutation tool with full annotation coverage and no output schema, the description covers operation semantics, nested payload shape, multi-stroke behavior, and coordinate provenance. The remaining gap is error and return behavior, which nothing else in the structured fields supplies. That gap is minor rather than crippling.

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 only 50%, and the undocumented parameter is the critical one -- `strokes` has no schema description at all. The description compensates well by defining a stroke as 'a list of [x, y] viewport-coordinate waypoints' and explaining ordering (first waypoint is pressed, the rest are traversed). It does not state minimum waypoint count or whether multiple strokes are ordered, leaving some ambiguity.

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 precise mechanism: 'Press, move, and release the pointer along one or more strokes,' which tells an agent exactly what operation is performed. It also concretizes the resource with examples ('signature pads or multi-segment drags'). It stops short of contrasting itself with browser_click or browser_click_at, so an agent must infer that single-clicks belong elsewhere.

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?

'use this for signature pads or multi-segment drags' gives a clear positive condition for selecting this tool, and 'Multiple strokes lift between each' implies the single-stroke case. The coordinate-sourcing sentence ('Coordinates come from browser_snapshot's at: [x, y] values...') is actionable prerequisite guidance. There is no explicit when-not-to-use or named alternative for simple clicks.

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