paste
Sets the device clipboard and triggers the platform shortcut to insert text into a focused iOS Simulator or Android Emulator field; use for OTP codes, long tokens, or testing clipboard handling.
Instructions
Set the DEVICE clipboard to text, then trigger the platform's paste shortcut to paste it into the focused field (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; call this 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"udid": "<udid>",
"text": "<text>"
},
"name": "paste"
}
}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 and is never echoed back. 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). |