Read Clipboard
Read text content from the iOS device's system clipboard.
Interface Description
Interface Type
execShortcutParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | ✅ | Device ID |
directive | string | ✅ | 'readClipboard' |
Return Value
javascript
"Clipboard text content" // Returns clipboard text contentBasic Usage
javascript
// Read clipboard content
const clipboardText = await apiInvoke('execShortcut', {
deviceId: 'P72578581E07',
directive: 'readClipboard'
});
console.log('Clipboard content:', clipboardText);