paste
Copies text to the mobile device clipboard, then triggers the platform shortcut to insert it into the focused field, keeping the host clipboard untouched.
Instructions
Paste text into the focused field: puts text on the DEVICE clipboard (the host clipboard is untouched), 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 }. Fails on a TV target, when the device clipboard cannot be set, 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). |