FleetDeckDocs

Action payload · devices:control

set_clipboard

Write up to 16,000 characters to a supported pasteboard. This does not itself paste into the focused field. Built-in ADB does not implement this command.

Payload

json
{
  "type": "set_clipboard",
  "value": "Text to paste"
}

Payload fields

typestringrequired

Discriminator that selects the action or content shape.

Allowed:"set_clipboard"
valuestringrequired

Text to type or write; for a clipboard read, the returned plaintext value. Writing the clipboard does not paste it.

max 16,000 characters
Example: "Text to paste"

Unknown fields are rejected.

View JSON Schema
json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "set_clipboard"
      ],
      "description": "Discriminator that selects the action or content shape."
    },
    "value": {
      "type": "string",
      "maxLength": 16000,
      "description": "Text to type or write; for a clipboard read, the returned plaintext value. Writing the clipboard does not paste it."
    }
  },
  "required": [
    "type",
    "value"
  ],
  "additionalProperties": false,
  "description": "Write up to 16,000 characters to a supported pasteboard. This does not itself paste into the focused field. Built-in ADB does not implement this command.",
  "example": {
    "type": "set_clipboard",
    "value": "Text to paste"
  }
}

REST wraps this payload inside {requestId, command}. The matching MCP tool takes sessionId and requestId plus these fields, without the type discriminator.

Contract

Submit this as command to POST /sessions/{sessionId}/actions, pass it as the CLI action JSON, or use the matching MCP convenience tool. Command objects are strict and reject unknown fields.

Execution

Write up to 16,000 characters to a supported pasteboard. This does not itself paste into the focused field. Built-in ADB does not implement this command.

Action status and driver result remain separate. A completed result can still require a fresh screenshot or hierarchy check to prove the intended visible effect.