Using the CLI
The CLI allows you (and your agents) to search for actions, inspect them, and perform browser automation.Installation
Core Commands
Search Actions
Find available action manuals for a specific task or website.Get Action Details
Retrieve the full manual for a specific action ID.Browser Automation
The CLI includes a built-in browser automation tool that uses the action manuals.Using Skills
Skills are enhanced capabilities that you can add to your AI agent’s context. By adding the Actionbook skill, you give your agent a manual on how to use Actionbook effectively.Add the Skill
Run this command in your project root:.skills (or similar) directory.
Benefits of Skills
- Context Awareness: The skill provides the agent with specific instructions on when and how to call Actionbook CLI commands.
- Workflow Optimization: It teaches the agent the optimal workflow:
search->get->operate. - Reduced Hallucinations: By following the skill’s procedure, the agent relies on verified action manuals instead of guessing DOM selectors.
Example Agent Workflow
Once the CLI is installed and the Skill is added, you can simply ask your agent:“Go to Airbnb and search for a place in Tokyo.”The agent will formatted:
- Read Skill: Understands it should use
actionbookCLI. - Search: Runs
actionbook search "airbnb search". - Get: Runs
actionbook get ...to find the search input and button selectors. - Operate: Runs
actionbook browser ...commands to perform the search safely.