Skip to main content
Glama

ui_drag

Drag an element onto a target to reorder rows, move cards between columns, or resize splits by emitting realistic press, move, and release events that reliable drop handlers require.

Instructions

Drag one element onto another — reordering rows, moving a card between columns, resizing a split. Dispatches a real press, several intermediate moves and a release, because drag implementations almost always ignore a press followed immediately by a release somewhere else.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoVisible text of what to drag.
frameNo'main' (default) or a substring of a frame's origin/name.main
stepsNoIntermediate move events. More is slower but survives pickier drag handlers.
testidNoTest id of what to drag.
to_textNoVisible text of where to drop it.
selectorNoCSS selector for what to drag.
to_testidNoTest id of where to drop it.
timeout_msNoHow long to wait for either element to become actionable.
to_selectorNoCSS selector for where to drop it.
Install Server

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 behavioral disclosure burden. It transparently explains that the tool dispatches a real press, several intermediate moves, and a release, and why that sequence matters. This is valuable beyond the schema.

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, both purposeful. The first states what the tool does with concrete use cases; the second explains the behavioral mechanism and its rationale. No wasted words.

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 action-oriented tool with no output schema, the description plus fully documented 9-parameter schema is largely complete. It covers the drag lifecycle and target/source concept. A minor gap is that it does not describe what is returned or how success is reported, but this is not critical for a UI interaction tool.

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?

The schema already provides 100% parameter coverage with detailed descriptions, defaults, and ranges, so the baseline is 3. The tool description adds no parameter-specific details, but it is not necessary given the schema's completeness.

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 states a specific action (drag one element onto another) with concrete examples (reordering rows, moving cards, resizing a split). It clearly identifies the resource and operation, though it does not explicitly contrast itself with sibling UI tools like ui_click or ui_hover.

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?

The examples imply when to use the tool, but there is no explicit guidance on when not to use it or which alternative to prefer. The phrase 'drag implementations almost always ignore...' gives rationale rather than usage boundaries.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dayananda-D/Devcdp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server