Write Clipboard
Write text content to the iOS device's system clipboard.
Interface Description
Interface Type
execShortcutParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | ✅ | Device ID |
directive | string | ✅ | 'writeClipboard' |
payload | string | ✅ | Text content to write to clipboard |
Return Value
javascript
true // Returns true on successful writeBasic Usage
javascript
// Write fixed text
await apiInvoke('execShortcut', {
deviceId: 'P72578581E07',
directive: 'writeClipboard',
payload: 'Hello iClick!'
})
// Simulate paste (Command+V)
await apiInvoke('sendKey', {
deviceId: 'P72578581E07',
key: 'v',
fnkey: 'command'
})