Skip to main content
Glama

drag_variable_speed

Simulate human-like mouse drags with ease-in-out timing to bypass slider and puzzle CAPTCHAs that flag constant-speed bot motion.

Instructions

Drag from one viewport coordinate to another at variable speed using an ease-in-out timing curve. Produces mousePressed at start, N intermediate mouseMoved events with varying delays (slow-fast-slow), then mouseReleased at end. The speed curve mimics human drag behavior: slow acceleration at start, peak speed in the middle, slow deceleration at end. Essential for slider CAPTCHAs and puzzle CAPTCHAs where constant-speed drag is detected as bot behavior. For uniform-speed drag (canvas drawing, map panning), use the regular drag tool instead. Related: drag (uniform-speed drag for canvas/maps), drag_drop (DOM element-to-element drag). Multi-agent: agent-scoped tabs; cross-agent reject with TAB_NOT_OWNED; cap configurable (default 8, 1-64). Pass tab_id only when this agent owns multiple tabs; auto-resolves otherwise. RETURNS change_report: when this tool runs, the response includes a change_report field with a compact diff of what the action mutated (URL, dialogs_opened, nodes_added, nodes_removed, attrs_changed, inputs_changed, focus_shift). Use this to learn the consequence without calling read_page next. If the report exceeds the size cap, change_report.truncated:true and change_report_hint are set; call read_page for the full state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endXYesEnd X coordinate in viewport CSS pixels (target/gap position)
endYYesEnd Y coordinate in viewport CSS pixels (usually same as startY for horizontal slider)
stepsNoNumber of intermediate mouseMoved events (default 20, more = smoother curve)
clientYesAllowlisted client label. Validated against the shared v0.9.36 server/extension allowlist (see mcp/src/tools/visual-session.ts -- MCP_VISUAL_CLIENT_LABELS). Required.
startXYesStart X coordinate in viewport CSS pixels (slider thumb position)
startYYesStart Y coordinate in viewport CSS pixels (slider thumb position)
tab_idNoOptional. Tab id this action targets. Omit when the calling agent owns exactly one tab; pass to disambiguate when the agent owns multiple. Single-tab agents and legacy popup/sidepanel/autopilot do not need to pass this.
is_finalNoWhen true, the visual session clears immediately after this tool resolves. Optional (default false).
maxDelayMsNoMaximum delay in ms between steps at start/end (default 40, edges of drag)
minDelayMsNoMinimum delay in ms between steps at peak speed (default 5, center of drag)
visual_reasonYesShort human-readable reason shown in the overlay (for example, "Logging in to GitHub"). Required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/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 burden and largely meets it: it discloses the emitted event sequence (mousePressed / N mouseMoved / mouseReleased), the slow-fast-slow delay behavior, the multi-agent ownership constraint with the TAB_NOT_OWNED rejection, and the configurable cap (default 8, 1-64). It omits any statement of safety/reversibility for what is an input-simulating action, which keeps it short of a 5.

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 correctly: purpose, event sequence, use case, and the sibling alternative all come before the ancillary notes. It is on the long side — the multi-agent and change_report paragraphs are verbose — but each section is scoped and none is filler.

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?

There is no output schema, so the description must describe returns, and it does: the change_report fields (URL, dialogs_opened, nodes_added, nodes_removed, attrs_changed, inputs_changed, focus_shift), the truncation flag/hint, and the escalation to read_page. Combined with purpose, exclusion criteria, error case, and tab scoping, an agent has everything needed to call it correctly.

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 100%, so the baseline is 3. The description supplies conceptual context for the timing parameters (the slow-fast-slow curve explains what steps/minDelayMs/maxDelayMs are doing) and repeats tab_id ownership semantics, but adds no syntax, ranges, or defaults beyond what the schema already documents.

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+resource with precise scope: 'Drag from one viewport coordinate to another at variable speed using an ease-in-out timing curve.' It names and differentiates its siblings — 'drag (uniform-speed drag for canvas/maps)' and 'drag_drop (DOM element-to-element drag)' — so an agent can disambiguate without opening a schema.

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?

Explicit when-to-use with an alternative: 'Essential for slider CAPTCHAs and puzzle CAPTCHAs where constant-speed drag is detected as bot behavior. For uniform-speed drag (canvas drawing, map panning), use the regular drag tool instead.' It also lists related tools and their distinct scopes.

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