Skip to main content
Glama
thebtf

netcoredbg-mcp

by thebtf

ui_drag

Drag a UI element from one position to another using AutomationId or screen coordinates, with configurable speed and modifier keys for .NET GUI automation.

Instructions

Drag from one position to another.

Two modes:

  1. By AutomationId: from_automation_id + to_automation_id (uses cached rectangles)

  2. By coordinates: from_x, from_y, to_x, to_y (absolute screen coords)

For mode 1, call ui_get_window_tree first to populate cache.

Args: from_automation_id: Source element AutomationId to_automation_id: Target element AutomationId from_x: Source X coordinate (screen absolute) from_y: Source Y coordinate to_x: Target X coordinate to_y: Target Y coordinate speed_ms: Total drag duration in milliseconds. Minimum 20 ms so the gesture always emits enough waypoints to cross common WPF drag thresholds reliably. hold_modifiers: Optional modifier names to hold for the full drag. Accepted values: ctrl, shift, alt, win.

Notes: - Identical from/to coordinates are rejected. - Short drags that stay below the system drag threshold should use ui_click instead of ui_drag.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
from_automation_idNo
to_automation_idNo
from_xNo
from_yNo
to_xNo
to_yNo
speed_msNo
hold_modifiersNo
Behavior5/5

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

Discloses key behaviors beyond the minimal annotation (openWorldHint: false): rejects identical coordinates, enforces minimum speed_ms of 20 ms for reliable drag thresholds, and describes optional modifier support. No contradictions.

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?

Well-structured with clear sections (modes, args, notes). No redundant or irrelevant information. Each sentence adds value.

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?

Given 8 parameters, no output schema, and extensive sibling tools, the description is complete: covers prerequisites, edge cases (identical coordinates, short drags), and alternatives. An agent can use this tool correctly without additional context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must explain all parameters. It does so comprehensively: defines each coordinate and automation ID, explains speed_ms minimum and purpose, and lists accepted modifier values. Adds essential context beyond 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?

The description clearly states 'Drag from one position to another' and defines two distinct modes (By AutomationId and By coordinates). It differentiates from sibling tools like ui_click by specifying when to use that alternative (short drags).

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?

Provides explicit usage guidance: when to use each mode, prerequisite for mode 1 (call ui_get_window_tree first), and conditions to use ui_click instead. This helps the agent choose correctly.

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

Install Server

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/thebtf/netcoredbg-mcp'

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