Skip to main content
Glama

Drag in sandbox

sandbox_drag

Drag between two coordinates to select grid ranges, move sliders, adjust file lists or splitters; optionally map points to the latest screenshot.

Instructions

Mouse-down at (x1,y1), animated move to (x2,y2), mouse-up — for grid selection, sliders, file lists and splitter moves. By default raw sandbox screen pixels; with coordinates='screenshot', pixels in the most recent sandbox_screenshot (or the one named by captureId); both endpoints are mapped.

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": {
      "x1": "<x1>",
      "y1": "<y1>",
      "x2": "<x2>",
      "y2": "<y2>"
    },
    "name": "sandbox_drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
x1Yes
x2Yes
y1Yes
y2Yes
captureIdNo
durationMsNoGesture duration (default 400).
coordinatesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0-alpha.3

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral load; it does disclose the gesture sequence, the animated move, and the default coordinate space. It does not state preconditions (must a sandbox be running and visible?), what happens on failure, whether the drag is clamped at screen bounds, or what the call returns — meaningful gaps for an input-injection tool.

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?

Two sentences, zero filler, with the gesture mechanics front-loaded and the coordinate-space caveat second. Every clause carries new information for the caller.

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 7-parameter input tool with no annotations and no output schema, the description covers the essential mechanics, both coordinate modes, and the capture reference. It leaves failure behavior, return values, and out-of-bounds handling unaddressed, which is the only notable hole.

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 description coverage is only 14% (only durationMs is documented), so the description has to compensate, and it largely does: it defines the two endpoints, explains that coordinates='screenshot' maps pixels against the most recent sandbox_screenshot, and that both endpoints are mapped. captureId's role is implied by '(or the one named by captureId)' but not fully spelled out, and durationMs is left to the schema.

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 the exact gesture mechanics — mouse-down at (x1,y1), animated move to (x2,y2), mouse-up — plus concrete use cases (grid selection, sliders, file lists, splitter moves). This clearly separates it from sandbox_click and sandbox_scroll without needing to name them.

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?

The enumerated use cases ('grid selection, sliders, file lists and splitter moves') give an agent a clear picture of when this tool applies, and the coordinate-mode explanation clarifies how to target the gesture. It stops short of explicitly naming alternatives (e.g. use sandbox_click for a single point) or stating exclusions, so it is strong context rather than full routing guidance.

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