input_mouseDrag
Simulate a mouse drag relative to the Moho window, enabling interaction with sliders, timeline playhead, or drawing tools.
Instructions
Drag from (startX, startY) to (endX, endY) relative to the MOHO window. Useful for dragging timeline playhead, sliders, or drawing operations.
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": {
"startX": "<startX>",
"startY": "<startY>",
"endX": "<endX>",
"endY": "<endY>"
},
"name": "input_mouseDrag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endX | Yes | Drag end X coordinate (window-relative) | |
| endY | Yes | Drag end Y coordinate (window-relative) | |
| steps | No | Number of intermediate points for smooth drag (default 10) | |
| button | No | Mouse button: "left" (default), "right" | |
| startX | Yes | Drag start X coordinate (window-relative) | |
| startY | Yes | Drag start Y coordinate (window-relative) |