Back to list
cyrup-ai

scrape-url

by cyrup-ai

0🍴 0📅 Dec 26, 2025

SKILL.md


name: scrape-url description: > Web crawling with Tantivy full-text search indexing. Supports crawl, search, and auto-crawl. WHEN: User wants to "scrape a website", "crawl documentation", "search crawled content", "index a site". WHEN NOT: Single page fetch (use browser_navigate), web search (use web_search). version: 0.1.0

scrape_url - Web Crawling with Search

Core Concept

mcp__plugin_kg_kodegen__scrape_url crawls websites, saves content as Markdown, and builds a Tantivy full-text search index. Uses an action-based interface with connection isolation and background execution support.

Actions

ActionDescriptionRequired Parameters
SEARCHSearch with auto-crawl (RECOMMENDED)url, query
CRAWLExplicit crawlurl
READCheck crawl progressNone
LISTShow all active crawlsNone
KILLCancel crawlNone

Key Parameters

ParameterTypeDefaultDescription
actionstring"CRAWL"Action to perform
urlstringnullTarget URL (required for CRAWL/SEARCH)
crawl_idnumber0Crawl instance (0, 1, 2...)
querystringnullSearch query (SEARCH action)
max_depthnumber3Maximum crawl depth
limitnumbernullMax pages to crawl
await_completion_msnumber600000Timeout (10 min default)
crawl_rate_rpsnumber2Requests per second
search_limitnumber10Max search results
search_offsetnumber0Search pagination offset
search_highlightbooleantrueHighlight matches

Usage Examples

Auto-crawls if index doesn't exist:

{
  "action": "SEARCH",
  "url": "https://ratatui.rs",
  "crawl_id": 0,
  "query": "layout widgets"
}

Explicit Crawl

{
  "action": "CRAWL",
  "crawl_id": 0,
  "url": "https://docs.rs/tokio"
}

Crawl with Limits

{
  "action": "CRAWL",
  "url": "https://example.com/docs",
  "max_depth": 2,
  "limit": 50,
  "crawl_rate_rps": 1
}

Check Progress

{
  "action": "READ",
  "crawl_id": 0
}

List Active Crawls

{ "action": "LIST" }

Cancel Crawl

{
  "action": "KILL",
  "crawl_id": 0
}

Search Query Syntax

Tantivy supports advanced queries:

Query TypeExampleDescription
Textlayout componentsSearch all fields
Phrase"exact phrase"Exact match
Booleanlayout AND widgetsLogical operators
Fieldtitle:layoutSearch specific field
Fuzzylayot~2Allow 2 character differences

Output Directory Structure

Content saved to .kodegen/citescrape/{domain}/:

.kodegen/citescrape/ratatui.rs/
├── manifest.json          # Crawl metadata
├── .search_index/         # Tantivy search index
├── index.md               # Homepage
├── tutorials/
│   └── hello-world.md
└── api/
    └── widgets.md

Workflows

Research Documentation

  1. SEARCH with url and query (auto-crawls if needed)
  2. Review results
  3. Follow up with more specific queries

Full Site Crawl

  1. CRAWL with url, max_depth, limit
  2. Monitor with READ
  3. Search with SEARCH action

Remember

  • SEARCH with url auto-crawls if index missing - simplest approach
  • Crawls are isolated by crawl_id - use different numbers for parallel crawls
  • Rate limiting default is 2 req/sec - be respectful of servers
  • Content saved as Markdown for easy reading
  • Search index enables fast full-text queries
  • Use READ to check on background crawls
  • Timeout returns partial results - crawl continues in background

Score

Total Score

55/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon