Skip to main content
Glama

hid.drag

Hold a mouse button down and glide from one screen coordinate to another, releasing at the destination. Enables drag-and-drop operations in design or file management that require real physical input.

Instructions

[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Drag from (from_x, from_y) to (to_x, to_y) while holding the named button. Internally: absolute move to source → mouse_button_down → glided absolute move to destination → mouse_button_up. Matches Anthropic Computer Use's left_click_drag action. Useful for design / spreadsheet / file-manager workflows where 'press → drag → release' is the atomic UI gesture.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
from_xYes
from_yYes
to_xYes
to_yYes
buttonNoleft
move_msNoDuration of the held-button move from source to destination.
relativeNoIf true, from_x/y and to_x/y are pixel deltas, not absolute coords.

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/tinqiao-oss/clawtouch-mcp'

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