# long-press

> Press and hold a point, a @t ref or a line of text, for context menus, previews and edit modes.

Source: https://zeptap.com/docs/cli/commands/long-press



## Usage [#usage]

```sh
zeptap long-press <x> <y> [--ms <ms>]
zeptap long-press @tN [--ms <ms>]
zeptap long-press --text <text> [--index <n>] [--ms <ms>]
```

## Options [#options]

| Option      | Description                    |
| ----------- | ------------------------------ |
| `--ms <ms>` | How long to hold (default 800) |

Also takes the same targets as [`tap`](https://zeptap.com/docs/cli/commands/tap#options), and the [global options](https://zeptap.com/docs/cli#global-options).

## Details [#details]

* Use it to open context menus, peek at links, and start editing the Home Screen.
* To move a Home Screen icon, use [`drag`](https://zeptap.com/docs/cli/commands/drag) with `--hold` instead.

## Examples [#examples]

```sh
$ zeptap long-press -l 7 --text "Notes" --look
$ zeptap long-press -l 7 200 700 --ms 1500
```

## MCP tool [#mcp-tool]

[`long_press`](https://zeptap.com/docs/agents/tools#long_press).
