clipboard_set
Set clipboard text on an Android device by sending content via scrcpy when a session is active, with an optional paste action, or falling back to ADB clipboard commands when needed.
Instructions
Set the clipboard content on the device. Uses scrcpy SET_CLIPBOARD when a session is active (with optional paste flag), falls back to ADB clipboard commands.
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": {
"text": "<text>"
},
"name": "clipboard_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to set in the clipboard | |
| paste | No | Also simulate paste action (scrcpy only) | |
| serial | No | Device serial number |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Mechanism used to set the clipboard (scrcpy or adb) | |
| message | Yes | Human-readable description of the result | |
| success | Yes | Whether the clipboard was set |