CLI Reference
The Actionbook CLI (actionbook) is the primary interface for interacting with Actionbook.
actionbook search
Search for available action manuals.
Usage:
query: The search keyword (e.g., “airbnb”, “google login”).
actionbook get
Retrieve a specific action manual by its ID.
Usage:
actionId: The unique identifier of the action.
actionbook setup
Initial setup wizard for API key, browser preferences, health checks, and optional skills install.
Run this once, then use the same actionbook browser ... commands regardless of mode.
Usage:
actionbook browser
Browser automation commands.
After
actionbook setup, browser command syntax is identical across modes.actionbook browser open
Open a URL in the browser.
Usage:
actionbook browser click
Click an element on the current page.
Usage:
selector: The CSS selector, XPath, or other supported selector string.
actionbook browser fill
Fill an input field with text.
Usage:
selector: The target input element selector.value: The text value to input.
Global Flags
These flags apply to allactionbook browser subcommands:
--json— Output results in JSON format.
actionbook app
Automate desktop applications built with Electron (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using Chrome DevTools Protocol.
All
browser commands work with app prefix. Full feature parity with 35+ automation commands.App-Specific Commands
actionbook app launch
Auto-discover and launch an Electron application.
Usage:
name: The application name (e.g., “Visual Studio Code”, “Slack”, “Discord”).
actionbook app attach
Attach to a running Electron app by name, port, or WebSocket URL.
Usage:
target(required): Application name, bundle ID, CDP port, or WebSocket URL.
actionbook app list
List all discoverable Electron applications on the system.
Usage:
actionbook app status
Show current app connection status.
Usage:
actionbook app close
Close the connected application.
Usage:
actionbook app restart
Restart the application (preserves session).
Usage:
All Browser Commands Available
Everybrowser command works with the app prefix. This includes:
Navigation:
actionbook app goto <URL>
actionbook app click <SELECTOR>actionbook app type <TEXT> [SELECTOR]actionbook app fill <TEXT> [SELECTOR]actionbook app hotkey "Control+C"
actionbook app snapshot [--format compact]actionbook app screenshot output.pngactionbook app eval "document.title"
actionbook app tab listactionbook app tab newactionbook app tab switch <PAGE_ID>
- Shadow DOM support (
:shadow-rootselector) - IFrame context switching
- Keyboard hotkeys (single and multi-modifier)
- Scroll with wait for lazy-loaded content
Supported Applications
| Application | macOS | Linux | Windows |
|---|---|---|---|
| Visual Studio Code | ✅ | ✅ | ✅ |
| Slack | ✅ | ✅ | ✅ |
| Discord | ✅ | ✅ | ✅ |
| Figma | ✅ | ✅ | ✅ |
| Notion | ✅ | ✅ | ✅ |
| Spotify | ✅ | ✅ | ✅ |
| Any Electron App | ✅ | ✅ | ✅ |