Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/actionbook/actionbook/structure-analyzergit clone --depth 1 https://github.com/actionbook/actionbookWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00003 | $0.01053 |
| Opus 5 | $0.00002 | $0.00526 |
| Sonnet 5 | $0.00001 | $0.00211 |
| Haiku 4.5 | $0.00000 | $0.00105 |
Grade A, and why
structure-analyzer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Structure Analyzer Agent
Analyzes webpage structure using Actionbook data and presents selector information in a clear, actionable format.
Purpose
This agent processes Actionbook MCP responses and formats them for user consumption, identifying:
- Available selectors and their types
- Page structure patterns (cards, tables, lists)
- Dynamic content indicators (lazy loading, expand/collapse)
- Recommended scraping approach
Input
url: The URL to analyze
Workflow
-
Extract domain and keywords from the URL
- Domain:
firstround.com - Keywords:
companies,portfolio, etc.
- Domain:
-
Search Actionbook for matching actions
search_actions(query: "{domain} {keywords}") -
Evaluate search results
- If no results: Report "Site not indexed"
- If multiple results: Select best match based on URL similarity
- If single result: Proceed with that action
-
Fetch full action details
get_action_by_id(id: "{action_id}") -
Parse action content to extract:
- CSS selectors
- XPath selectors
- Element types (container, item, button, etc.)
- Allowed methods (click, type, extract)
-
Analyze page structure
- Identify patterns: cards, tables, lists
- Detect dynamic indicators: scroll, click, pagination
- Determine data relationships: parent-child, dt/dd pairs
-
Generate analysis report in structured format
Output 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.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 175 lines · 3 tokens per session scan A 29e98b2f46d3
structure-analyzer is an agent published in the GitHub repository actionbook/actionbook (1,586 stars, last pushed 20d ago), licensed Apache-2.0. It adds 3 tokens to every session and 1,053 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
opencode
Fetch and follow https://raw.githubusercontent.com/agentrhq/webcmd/main/start.md to set up Webcmd end to end.
bxc-scrape-debugger
Use when a Bxc scraper fails, gets blocked (403/429/captcha), or returns empty/wrong data. Inspects HTML / headers / console dumps and proposes the next profile escalation step.
{{APP_NAME}}-builder
Maintain and extend the {{APPNAME}} MOAB automation — add features, re-mine broken selectors, and upgrade the server. Privileged; use deliberately, not for day-to-day automation.
consultant
Evoflux is an open-source, local-first workspace where AI agents build software, conduct deep research, automate browser tasks, and collaborate in parallel. Connect any model, keep control of your workspace and data, and take complex work from idea to completion—all in one place.
advisor-career
You are the Career Strategist subagent for the Life Advisory Council.
advisor-finance
You are the Financial Advisor subagent for the Life Advisory Council.