Skip to main content
Glama

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

NameRequiredDescriptionDefault
textYesText 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.
udidYesTarget device id from `list-devices` (iOS simulator UDID or Android emulator serial).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / text / description
      Previous value: -"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."New value: +"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."
  2. Addedv0.22.0

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden and does: it discloses the side effect of writing the device clipboard, the return value { pasted: true }, a silent fallback path ('via: "keyboard" when a secret was typed instead of pasted'), and four distinct failure conditions (TV target, clipboard cannot be set, untypeable secret character, simulator-server without clipboard support).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action, followed by the sibling exclusion, the positive cases, the focus prerequisite, and the return/failure contract in that order. Every sentence carries distinct information; none restates the tool name or schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation tool with no annotations and no output schema, the description covers selection guidance, prerequisite state (focused field), return shape, fallback behavior, and failure modes. An agent has everything needed to decide when to call it and how to interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3 and the schema already documents `text` and `udid`. The description adds meaning beyond the schema only for the fallback case, noting that a secret may be typed instead of pasted when it cannot be placed on the clipboard, which explains the `via` field and a failure mode tied to the `text` parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Set the DEVICE clipboard to `text`, then trigger the platform's paste shortcut') and states the scope (iOS simulator, Android emulator). It explicitly contrasts with the `keyboard` sibling in the same sentence, so an agent can pick between them without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit negative rule ('Do NOT use this in place of `keyboard`'), names the default (`keyboard` for all text entry), and enumerates the narrow positive cases: 2FA/OTP codes, long links or tokens, testing the app's own paste handling. It also states the prerequisite 'Tap the field first so it has focus.'

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.