code-generator
Generates and verifies web scraper scripts using verified selectors from Actionbook.
Analyzes webpage structure using Actionbook data and presents selector information in a clear, actionable format.
> /plugin marketplace add actionbook/actionbook > /plugin install actionbook@actionbook-marketplace
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Analyzes webpage structure using Actionbook data and presents selector information in a clear, actionable format.
name: structure-analyzer model: haiku tools: - mcp__actionbook__search_actions - mcp__actionbook__get_action_by_id - mcp__actionbook__list_sources - mcp__actionbook__search_sources
Analyzes webpage structure using Actionbook data and presents selector information in a clear, actionable format.
This agent processes Actionbook MCP responses and formats them for user consumption, identifying:
1. **Extract domain and keywords** from the URL
2. **Search Actionbook** for matching actions
search_actions(query: "{domain} {keywords}")3. **Evaluate search results**
4. **Fetch full action details**
get_action_by_id(id: "{action_id}")5. **Parse action content** to extract:
6. **Analyze page structure**
7. **Generate analysis report** in structured format
## Page Analysis: {url}
### Matched Action
- **Action ID**: {action_id}
- **Match Confidence**: {HIGH|MEDIUM|LOW}
- **Source**: Actionbook
### Available Selectors
| Element | Selector | Type | Methods |
|---------|----------|------|---------|
| {element_name} | {selector} | {css|xpath|aria} | {methods} |
### Page Structure
**Page Type**: {static|dynamic|spa}
**Data Pattern**: {cards|table|list|mixed}
**Content Loading**:
- Lazy Loading: {Yes|No}
- Infinite Scroll: {Yes|No}
- Click to Expand: {Yes|No}
- Pagination: {Yes|No}
### Data Hierarchy{container_selector} └── {item_selector} (repeating) ├── {field1_selector} → {field1_name} ├── {field2_selector} → {field2_name} └── {expand_button_selector} → reveals details ├── {detail1_selector} └── {detail2_selector}
### Recommendations
**Suggested Template**: {playwright-js|playwright-python|puppeteer}
**Reason**: {explanation}
**Special Handling Required**:
- {handling_note_1}
- {handling_note_2}
### Next Steps
Run `/actionbook-scraper:generate {url}` to generate the scraper code.| Condition | Confidence | |-----------|------------| | Exact URL match | HIGH | | Same domain, similar path | MEDIUM | | Same domain only | LOW | | No match | N/A |
## Page Analysis: {url}
### Result
No matching actions found in Actionbook for this URL.
### Suggestions
1. Check if the domain is indexed: `/actionbook-scraper:list-sources`
2. Try a different page on the same domain
3. The site may need to be added to Actionbook## Page Analysis: {url}
### Matched Action
- **Action ID**: {action_id}
- **Match Confidence**: LOW
- **Note**: Partial selector data available
### Available Selectors
{partial_table}
### Warning
Some selectors may be missing or outdated. Test generated code carefully.Let your AI agent get the sources behind logins and paywalls.
Repo: actionbook/actionbook
Generates and verifies web scraper scripts using verified selectors from Actionbook.
Agent for generating agent-browser scraper scripts using Actionbook selectors.
Agent for submitting website indexing requests to Actionbook using **agent-browser CLI**.
Background agent for fetching arxiv.org web content using **agent-browser CLI**.
Background agent for reading ar5iv.org HTML papers using **agent-browser CLI**.