Computer use
Control a graphical desktop from the CLI or SDK, and share its viewer with a person.
Desktop-enabled large computers run Chromium, a terminal and a file manager. They use the same isolated VM and files as your commands. Small computers keep Lightpanda; graphics start only when requested.
New large computers include the desktop. Use CLI 0.1.9 or newer and JavaScript SDK 0.4.0 or newer. Python 0.3.0 is prepared as a source build; its PyPI release is pending. Existing computers keep their original image.
workpaper run research --size large --json
workpaper desktop research start --json
workpaper desktop research launch browser --json
workpaper desktop research screenshot /tmp/research.png --json
workpaper desktop research press ctrl l --json
workpaper desktop research type --json -- "https://example.com"
workpaper desktop research press enter --json
More actions and fewer round trips
workpaper desktop research click 400 300 --count 2 --json # double-click (1-3)
workpaper desktop research drag 100 100 400 300 --json
workpaper desktop research scroll -3 400 300 --json # scroll at a position
workpaper desktop research scroll 2 --horizontal --json # positive is right
workpaper desktop research keydown shift --json # hold until keyup
workpaper desktop research keyup shift --json
workpaper desktop research info --json # cursor and screen size
workpaper desktop research screenshot /tmp/part.png --region 0 0 400 300 --json
workpaper desktop research batch actions.json /tmp/after.png --json
batch takes a JSON array of up to 32 actions (- reads stdin), runs them in one call, stops at the first failure and names its index. Give an output file to finish with a screenshot, so act-then-look is one command. In the SDKs: desktop.batch([...]). The whole batch is validated before anything runs. Add {"action":"wait","ms":1500} after launch or Enter so the final screenshot shows the loaded page. Agents should prefer batches: one look-act-look cycle is one call instead of several.
Screenshots no longer need a separate cleanup call; the computer removes its own temporary files after a minute. These actions need a computer created from a rebuilt desktop template, with CLI and SDK releases that include them. Existing computers and earlier images keep the previous action set.
Human takeover
workpaper desktop research url --json
workpaper desktop research open
The hosted viewer at browser.workpaper.co checks your sign-in and computer ownership. No local port is needed. Each VM has a separate URL; tabs for the same VM share its screen and input. Closing a viewer does not stop the VM.
Files and stopping
Use /workspace; /home/agent points to the same directory. workpaper desktop research stop stops graphics only. workpaper stop research pauses the whole computer and keeps disk and memory. Forks are independent copies.
Teach your agent
Run workpaper agents --json, or give the agent the complete agent guide. It covers screenshot coordinates, literal typing, keyboard shortcuts, CLI errors, JS and sync/async Python SDKs, files, pause/resume, and human takeover.