> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notte.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# MouseDragAction

> [!TIP]
>
> Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.

[Source: node-sdk/src/lib/client/types.gen.ts](https://github.com/nottelabs/notte/blob/main/node-sdk/src/lib/client/types.gen.ts)

```typescript theme={null}
export type MouseDragAction = {
    /**
     * Type
     */
    type?: 'mouse_drag';
    /**
     * Category
     */
    category?: string;
    /**
     * Description
     */
    description?: string;
    /**
     * From X
     *
     * Horizontal start coordinate in CSS pixels from the top-left corner of the viewport, as in a screenshot at device scale 1
     */
    from_x: number;
    /**
     * From Y
     *
     * Vertical start coordinate in CSS pixels from the top-left corner of the viewport, as in a screenshot at device scale 1
     */
    from_y: number;
    /**
     * To X
     *
     * Horizontal end coordinate in CSS pixels from the top-left corner of the viewport, as in a screenshot at device scale 1
     */
    to_x: number;
    /**
     * To Y
     *
     * Vertical end coordinate in CSS pixels from the top-left corner of the viewport, as in a screenshot at device scale 1
     */
    to_y: number;
    /**
     * Steps
     *
     * Number of intermediate pointer moves: more steps make a smoother, slower gesture
     */
    steps?: number;
    /**
     * Button
     */
    button?: 'left' | 'right' | 'middle';
    /**
     * Hold Ms
     *
     * Time to hold the button down before moving, in milliseconds
     */
    hold_ms?: number;
};
```

## Fields

**type** `"mouse_drag" | undefined`

**category** `string | undefined`

**description** `string | undefined`

**from\_x** `number` *required*

Horizontal start coordinate in CSS pixels from the top-left corner of the viewport, as in a screenshot at device scale 1

**from\_y** `number` *required*

Vertical start coordinate in CSS pixels from the top-left corner of the viewport, as in a screenshot at device scale 1

**to\_x** `number` *required*

Horizontal end coordinate in CSS pixels from the top-left corner of the viewport, as in a screenshot at device scale 1

**to\_y** `number` *required*

Vertical end coordinate in CSS pixels from the top-left corner of the viewport, as in a screenshot at device scale 1

**steps** `number | undefined`

Number of intermediate pointer moves: more steps make a smoother, slower gesture

**button** `"left" | "right" | "middle" | undefined`

**hold\_ms** `number | undefined`

Time to hold the button down before moving, in milliseconds


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.