Skip to main content
Glama
Karylcode
by Karylcode

ui_drag

Simulates a mouse drag in Cascadeur by pressing, moving in steps, and releasing so the app updates between moves, useful for dragging control points with AutoPosing.

Instructions

Drag with the mouse like a user: press at the start, move in steps (button held), release at the end. Start: object (scene object name, projected into the 3D viewport), ref, query or window x/y. End: to_x/to_y or offset dx/dy in window coordinates. Each step runs separately so Cascadeur updates between moves (e.g. AutoPosing while dragging a control point). Returns the actual start/end points.

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
dxNo
dyNoNegative moves up on screen.
refNoElement ref from the latest ui_tree or dialogs result.
to_xNo
to_yNo
queryNoText, tooltip, actionId or objectName to find an on-screen element.
stepsNoIntermediate move events (default 20).
buttonNo
methodNoqtest (default) goes through Qt's window-system input path; event sends QMouseEvents directly.
objectNoScene object to start from, e.g. 'mixamorig:LeftHand_MainPoint'.
windowNoWindow index or title substring (default: focused/main window).
fov_degNoViewport vertical FOV for object projection (default 30).
hold_msNoPause after pressing before moving (default 80).
modifiersNo
settle_msNoMilliseconds to wait for the UI to update before returning (default 150).
duration_msNoTotal time spent moving (default 400).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses the press/move/release sequence, that each step runs separately for UI updates, the qtest-vs-event input path distinction, and that it returns actual start/end points. It omits any risk, permission, or focus-change caveats.

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?

Dense and front-loaded: the drag mechanics come first, then start/end targeting, then rationale for per-step execution, then return value. Every sentence carries information, though the start/end enumeration is slightly terse.

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 an 18-parameter, no-annotation, no-output-schema tool, the description covers the essential drag lifecycle, targeting options, and return values. Some timing/modifier parameters remain only in the schema, and there is no note on failure or focus behavior.

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?

At 61% schema coverage, the description adds real value by defining the start (object/ref/query/window x/y) and end (to_x/to_y or offset dx/dy) coordinate schemes, which the schema alone does not explain. Remaining params (steps, hold_ms, settle_ms, modifiers) are left to schema descriptions.

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 (drag) with the exact mechanics: press at start, move in steps, release at end. It is clearly distinguishable from siblings ui_click, ui_hover, and ui_key by describing the multi-step held-button gesture.

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?

Gives a concrete use-case (AutoPosing while dragging a control point) and explains why steps run separately so Cascadeur updates between moves. It lacks explicit when-not-to-use guidance or a direct alternative comparison, keeping it below 5.

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