Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Presses the mouse button down on an element without releasing it, for drag operations and custom gestures.
55% 100%+45 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 12 of 22 without it.
3 of 3 safety checks passed
57 agent runs
1 forkA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
The mouseDown() method presses the mouse button at an element's location without releasing it. This is useful for drag operations, custom gestures, or when you need precise control over mouse events. You can either call it on an Element instance or use it directly with a selector.
// Mouse down on an element
await element.mouseDown();
// Mouse down using a selector
await ai.mouseDown('selector');
When called on an Element, no parameters are required.
When called directly on the AI client:
| Parameter | Type | Description |
|---|---|---|
selector | string | The selector describing the element where the mouse button should be pressed |
Returns a Promise<void> that resolves when the mouse button is pressed.
// Start dragging an item
const dragItem = await ai.find('file to drag');
await dragItem.mouseDown();
// Move to drop target
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.