Package Exports
- @actionbookdev/cli
- @actionbookdev/cli/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@actionbookdev/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@actionbookdev/cli
CLI for Actionbook - Get website action manuals for AI agents.
Installation
npm install -g @actionbookdev/cliQuick Start
# Search for actions
actionbook search "airbnb search"
# Get action details
actionbook get "https://www.airbnb.com/search"
# List available sources
actionbook sources
# Search sources
actionbook sources search "linkedin"Commands
actionbook search <query>
Search for action manuals by keyword.
actionbook search "google login"
actionbook search "airbnb" --type vector --limit 10
actionbook search "login" --source-ids 1,2,3Options:
-t, --type <type>- Search type:vector,fulltext, orhybrid(default:hybrid)-l, --limit <number>- Maximum results 1-100 (default:5)-s, --source-ids <ids>- Filter by source IDs (comma-separated)--min-score <score>- Minimum similarity score 0-1-j, --json- Output raw JSON
Alias: actionbook s
actionbook get <id>
Get complete action details by action ID.
actionbook get "https://www.airbnb.com/search"
actionbook get "airbnb.com/search" # fuzzy matching supported
actionbook get "releases.rs" # domain onlyOptions:
-j, --json- Output raw JSON
Alias: actionbook g
actionbook sources
List all available sources (websites).
actionbook sources
actionbook sources --limit 100
actionbook sources --jsonOptions:
-l, --limit <number>- Maximum results (default:50)-j, --json- Output raw JSON
actionbook sources search <query>
Search for sources by keyword.
actionbook sources search "airbnb"
actionbook sources search "e-commerce" --limit 20Options:
-l, --limit <number>- Maximum results (default:10)-j, --json- Output raw JSON
Alias: actionbook sources s
Authentication
Set your API key via environment variable:
export ACTIONBOOK_API_KEY=your_api_keyOr pass it as an option:
actionbook --api-key your_api_key search "query"Output Formats
By default, the CLI outputs formatted, colorized results for human readability.
Use --json flag for raw JSON output, useful for piping to other tools:
actionbook search "login" --json | jq '.results[0].action_id'Examples
Typical Workflow
# 1. Search for actions
actionbook search "airbnb search"
# 2. Get details for a specific action
actionbook get "https://www.airbnb.com/search"
# 3. Use the selectors in your automation scriptFilter by Source
# List sources to find IDs
actionbook sources
# Search within specific sources
actionbook search "login" --source-ids 1,2JSON Output for Scripts
# Get action and extract selectors
actionbook get "booking.com" --json | jq '.elements'Related Packages
@actionbookdev/sdk- JavaScript/TypeScript SDK@actionbookdev/mcp- MCP Server for AI agents
License
MIT