paste
Inserts clipboard text into the focused field on iOS simulators or Android emulators; use for OTP codes, long links, tokens, or testing clipboard handling.
Instructions
Paste text into the focused field: puts text on the DEVICE clipboard, then triggers the platform's paste shortcut (iOS simulator, Android emulator).
Do NOT use this in place of keyboard. keyboard types as a user would and is the default for all text entry; use paste only where a real user would paste — a 2FA/OTP code copied from another app, a long link or token, or when testing the app's own paste handling.
Tap the field first so it has focus. Returns { pasted: true }, plus via: "keyboard" when a secret was typed instead of pasted. Fails on a TV target, when the device clipboard cannot be set, when a secret that has to be typed holds a character that cannot be typed, or when the simulator-server build lacks clipboard support.
Supports {{secret:<NAME>}} placeholders like keyboard; the value is never echoed back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to put on the device clipboard and paste into the focused field. Supports `{{secret:<NAME>}}` placeholders, resolved on the tool-server from the `ARGENT_SECRET_<NAME>` environment variable or an argent secrets file — the same sources as `keyboard` — so a credential never enters your context. If the secret is not set, the failure lists the available names and every source it looked in; ask the user to add it there, NEVER ask for the value in the conversation. | |
| udid | Yes | Target device id from `list-devices` (iOS simulator UDID or Android emulator serial). |