# type

> Type text into the focused field, from an argument or from stdin.

Source: https://zeptap.com/docs/cli/commands/type



## Usage [#usage]

```sh
zeptap type <text>
zeptap type --stdin
```

## Options [#options]

| Option    | Description                                               |
| --------- | --------------------------------------------------------- |
| `<text>`  | The text. Several arguments are joined with spaces        |
| `--stdin` | Read the text from stdin. One trailing newline is dropped |

Also takes the [global options](https://zeptap.com/docs/cli#global-options).

## Details [#details]

* Tap the field first: `type` needs a focused field.
* Any language works. Text that isn't plain US-keyboard ASCII is pasted through Universal Clipboard, which needs Handoff on and the same Apple Account on the Mac and the iPhone.
* iOS autocorrect, auto-capitalization and smart quotes may change the text, so check it with `--look`.
* `type` doesn't press Return. Follow it with [`key enter`](https://zeptap.com/docs/cli/commands/key) to submit.
* Use `--stdin` for long text, or text with quotes your shell would mangle.

## Examples [#examples]

```sh
$ zeptap tap -l 7 --text "Search"
$ zeptap type -l 7 "running shoes" --look
$ zeptap key -l 7 enter
$ cat caption.txt | zeptap type -l 7 --stdin
```

## MCP tool [#mcp-tool]

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