Read or write the Android clipboard
mobile_clipboardReads or sets clipboard text on Android devices via ADB, falling back to a companion session when shell access is denied, and reports empty only when confirmed.
Instructions
Read dumpsys clipboard, then cmd clipboard get when the dump is redacted. set uses cmd clipboard set. When the shell cannot read or write, an active companion session uses ClipboardManager. Without a companion, the result says the read was denied and names the companion. An empty string is returned only when a read can see that the clipboard is empty. A clip the companion cannot see stays readable false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| action | No | get | |
| serial | Yes | Exact ADB serial from mobile_devices_list; never inferred when multiple devices exist |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | ||
| text | No | ||
| reason | No | ||
| backend | No | ||
| readable | No | ||
| redacted | No |