Robot Resources Scraper

v0.1.2
io.github.robot-resources/scraper Checked 3 days ago Published 8 months ago

Token compression for web content — 70-80% reduction from HTML to clean markdown

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scraper_compress_url

Compress web content from a URL for reduced token usage. Returns markdown with 70-90% fewer tokens than raw HTML.

ParameterTypeDescription
url *stringURL to compress
maxRetriesintegerMax retry attempts (default: 3)
modestringFetch mode: 'fast' (plain HTTP), 'stealth' (TLS fingerprint), 'render' (headless browser), 'auto' (fast with fallback). Default: 'auto'
timeoutnumberFetch timeout in milliseconds (default: 10000)

scraper_crawl_url

Crawl multiple pages from a starting URL using BFS link discovery. Returns compressed markdown for each page with 70-90% fewer tokens than raw HTML.

ParameterTypeDescription
url *stringStarting URL to crawl
excludearrayURL patterns to exclude (glob)
includearrayURL patterns to include (glob)
maxDepthintegerMax link depth (default: 2)
maxPagesintegerMax pages to crawl (default: 10)
modestringFetch mode: 'fast' (plain HTTP), 'stealth' (TLS fingerprint), 'render' (headless browser), 'auto' (fast with fallback). Default: 'auto'
timeoutnumberPer-page timeout in milliseconds (default: 10000)