Remote input
preview_input- Group
- Remote screens
- Turned on by
- Its own switch on the Tools page of Conversation settings.
- Approval
- Reviewed: writes and open-ended actions ask for approval unless the security level or an earlier “Always allow” covers them.
- Profile key
tool.preview_input.description
Drives a remote-control screen: a phone, desktop or virtual machine that .mewrk/launch.json declares with "type": "remote-control", and that preview_start has connected.
The actions run in order, at most 20, and the first one that fails stops the rest: click, long press, drag, scroll, move, type, key and wait. Coordinates are pixels of the latest preview_screenshot. On a desktop, a type with via: "paste" pastes through the clipboard.
Parameters
| Parameter | Type | Details |
|---|---|---|
actions requiredActions | object[] | Actions to run in order, at most 20; the first one that fails stops the rest. x and y are pixels of the latest preview_screenshot (or preview_snapshot's @x,y boxes). Actions: click, long_press, drag, scroll, move, type, key, wait; a type with via "paste" pastes through the clipboard (desktops only). |
screenshotScreenshot | boolean | Also return a screenshot of the screen after the actions. |
serverIdServer ID | string | Default: the screen the preview pane shows. |