# Control a desktop session

Collection: sdk
Human docs: https://zei.sh/docs/sdk

Use screenshots and native Wayland input for GUI agents.

Desktop actions are available on the first-party session client. Use screenshot, move, click, scroll, type, and key with a template that includes a desktop agent.

Example:

```
const png = await sandbox.desktop.screenshot();
await sandbox.desktop.move(340, 210);
await sandbox.desktop.click({ x: 340, y: 210 });
await sandbox.desktop.type("hello");
await sandbox.desktop.key("ENTER");
```
