adb_clipboard
Read or write the Android device clipboard via ADB so AI agents can retrieve copied text or set clipboard content during device automation.
Instructions
Read or write the device clipboard. Write mode sets the clipboard content; read mode retrieves it. Clipboard access requires Android 10+ and may need the app to be in foreground on Android 12+.
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": {
"action": "<action>"
},
"name": "adb_clipboard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to write to clipboard (required when action='write') | |
| action | Yes | 'read' to get clipboard, 'write' to set it | |
| device | No | Device serial |