appium_mobile_clipboard
Read or set the device clipboard as plain text on Android and iOS. Use 'get' to retrieve current text or 'set' to write new content.
Instructions
Read or set the device clipboard as plain text (Android UiAutomator2 / iOS XCUITest). action=get returns current text; action=set requires content.
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": "appium_mobile_clipboard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | get: read device clipboard as plain text. set: write plain text to the clipboard. | |
| content | No | Required when action is set. Plain text to put on the clipboard. | |
| sessionId | No | Session ID; defaults to the active session. |