site init (barrett)

This commit is contained in:
Harivansh Rathi 2026-03-25 15:44:35 -04:00
parent f05f441dee
commit d5db569030
15 changed files with 5862 additions and 0 deletions

53
site/src/pages/usage.mdx Normal file
View file

@ -0,0 +1,53 @@
---
layout: ../layouts/DocLayout.astro
title: Usage
toc: true
---
# Usage
## Snapshot
Capture the current desktop state:
```sh
deskctl snapshot
```
With annotations overlaid on windows:
```sh
deskctl --json snapshot --annotate
```
## Click
Click a window by its annotation handle:
```sh
deskctl click @w1
```
## Type
Type text into the focused window:
```sh
deskctl type "hello world"
```
## Focus
Focus a window by name:
```sh
deskctl focus "firefox"
```
## JSON output
Pass `--json` for machine-readable output, useful for agent integrations:
```sh
deskctl --json snapshot
```