--- summary: "Agent tool surface for Clawdis (browser, canvas, nodes, cron) replacing clawdis-* skills" read_when: - Adding or modifying agent tools - Retiring or changing clawdis-* skills --- # Tools (Clawdis) Clawdis exposes **first-class agent tools** for browser, canvas, nodes, and cron. These replace the old `clawdis-*` skills: the tools are typed, no shelling, and the agent should rely on them directly. ## Tool inventory ### `clawdis_browser` Control the dedicated clawd browser. Core actions: - `status`, `start`, `stop`, `tabs`, `open`, `focus`, `close` - `snapshot` (aria/ai) - `screenshot` (returns image block + `MEDIA:`) - `act` (UI actions: click/type/press/hover/drag/select/fill/resize/wait/evaluate) - `navigate`, `console`, `pdf`, `upload`, `dialog` Notes: - Requires `browser.enabled=true` in `~/.clawdis/clawdis.json`. - Uses `browser.controlUrl` unless `controlUrl` is passed explicitly. ### `clawdis_canvas` Drive the node Canvas (present, eval, snapshot, A2UI). Core actions: - `present`, `hide`, `navigate`, `eval` - `snapshot` (returns image block + `MEDIA:`) - `a2ui_push`, `a2ui_reset` Notes: - Uses gateway `node.invoke` under the hood. - If no `node` is provided, the tool picks a default (single connected node or local mac node). - A2UI is v0.8 only (no `createSurface`). ### `clawdis_nodes` Discover and target paired nodes; send notifications; capture camera/screen. Core actions: - `status`, `describe` - `pending`, `approve`, `reject` (pairing) - `notify` (macOS `system.notify`) - `camera_snap`, `camera_clip`, `screen_record` Notes: - Camera/screen commands require the node app to be foregrounded. - Images return image blocks + `MEDIA:`. - Videos return `FILE:` (mp4). ### `clawdis_cron` Manage Gateway cron jobs and wakeups. Core actions: - `status`, `list` - `add`, `update`, `remove`, `run`, `runs` - `wake` (enqueue system event + optional immediate heartbeat) Notes: - `add` expects a full cron job object (same schema as `cron.add` RPC). - `update` uses `{ jobId, patch }`. ## Parameters (common) Gateway-backed tools (`clawdis_canvas`, `clawdis_nodes`, `clawdis_cron`): - `gatewayUrl` (default `ws://127.0.0.1:18789`) - `gatewayToken` (if auth enabled) - `timeoutMs` Browser tool: - `controlUrl` (defaults from config) ## Recommended agent flows Browser automation: 1) `clawdis_browser` → `status` / `start` 2) `snapshot` (ai or aria) 3) `act` (click/type/press) 4) `screenshot` if you need visual confirmation Canvas render: 1) `clawdis_canvas` → `present` 2) `a2ui_push` (optional) 3) `snapshot` Node targeting: 1) `clawdis_nodes` → `status` 2) `describe` on the chosen node 3) `notify` / `camera_snap` / `screen_record` ## Safety - Avoid `system.run` (not exposed as a tool). - Respect user consent for camera/screen capture. - Use `status/describe` to ensure permissions before invoking media commands.