analyze
Analyze a webpage's structure using Actionbook's verified selectors and show available elements for scraping.
Generate web scraper scripts using Actionbook's verified selectors.
> /plugin marketplace add actionbook/actionbook > /plugin install actionbook@actionbook-marketplace
How it fires
How this command gets triggered: by you, by Claude, or both.
/generateContext preview
What this command does when you run it.
Generate web scraper scripts using Actionbook's verified selectors.
Generate web scraper scripts using Actionbook's verified selectors.
**Every generated script MUST be verified by executing it. If verification fails, fix and retry.**
┌─────────────────────────────────────────────────────┐ │ │ │ 1. Generate Script │ │ ↓ │ │ 2. Execute Script to Verify │ │ ↓ │ │ 3. Check Results │ │ ↓ │ │ ┌───┴───┐ │ │ │ │ │ │ Success Failure │ │ │ │ │ │ ↓ ↓ │ │ Output Analyze Error → Fix Script → Go to 2 │ │ Script │ │ │ └─────────────────────────────────────────────────────┘
**When `/generate <url>` is called (without --standalone):**
Output MUST be **agent-browser bash commands**, NOT Playwright/JavaScript:
agent-browser open "https://example.com" agent-browser scroll down 2000 agent-browser get text ".selector" agent-browser close
**Do NOT output:**
---
**Only output Playwright when `--standalone` is specified:**
/generate <url> --standalone → Playwright .js code
/actionbook-scraper:generate <url> [--standalone] [--template <template>] [--output <format>]
/actionbook-scraper:generate https://firstround.com/companies
**Output:** agent-browser commands that user can run
# Generated script - user runs this manually agent-browser open "https://firstround.com/companies" agent-browser wait --load networkidle agent-browser scroll down 2000 agent-browser get text ".company-list-card-small" agent-browser close
/actionbook-scraper:generate https://firstround.com/companies --standalone
**Output:** Playwright/Puppeteer JavaScript code that user can run
// Generated script - user runs: node scraper.js
const { chromium } = require('playwright');
// ... full script codesearch_actions("firstround companies")
→ Returns action_idget_action_by_id(action_id) → Returns: - Card: .company-list-card-small - Name: .company-list-card-small__button-name - Expand: button.company-list-card-small__button
Use selectors to generate script code.
**Every script must pass BOTH checks:**
| Check | What to Verify | |-------|----------------| | **Part 1: Script Runs** | No errors, no timeouts | | **Part 2: Data Correct** | Content matches expected fields |
**For agent-browser scripts:**
# Execute commands agent-browser open "https://example.com" agent-browser wait --load networkidle agent-browser get text ".selector" # Part 1: Check no errors # Part 2: Check data content is correct: # - Fields are not empty # - Values are actual data, not "Loading..." or "Click to expand" # - Field mapping is correct (name contains name, not year) agent-browser close
**For Playwright scripts (--standalone):**
# Execute: node /tmp/scraper.js # Part 1: Check script runs without errors # Part 2: Check output data is correct: # - JSON has expected fields # - Values are actual content, not UI text
**If BOTH checks pass:**
**If Part 1 fails (script error):**
**If Part 2 fails (wrong data):**
**Max 3 retries** - If still failing, report the specific issue
Provide:
## Generated Scraper (agent-browser) **Target URL**: https://firstround.com/companies **Selectors**: From Actionbook (verified) ### Script Run these commands in sequence: ```bash agent-browser open "https://firstround.com/companies" agent-browser wait --load networkidle agent-browser wait ".company-list-card-small" # Scroll to load all cards agent-browser scroll down 2000 agent-browser wait 1500 agent-browser scroll down 2000 agent-browser wait 1500 # Extract data agent-browser get text ".company-list-card-small" # Close browser agent-browser close
Copy and run each command in your terminal.
Company data in text format that you can parse into JSON.
### Standalone Mode Output (Playwright) ```markdown ## Generated Scraper (Playwright) **Target URL**: https://firstround.com/companies **Template**: playwright-js ### Dependencies ```bash npm install play
Let your AI agent get the sources behind logins and paywalls.
Repo: actionbook/actionbook
Analyze a webpage's structure using Actionbook's verified selectors and show available elements for scraping.
List all websites that have verified selector data in Actionbook.
Request a new website to be indexed in Actionbook by submitting its URL through the request form.
Extract the bibliography/references from an arXiv paper (ar5iv.org).
Extract all figures and their captions from an arXiv paper (ar5iv.org).