Loading...
Loading...
Resolve queries or URLs into compact, LLM-ready markdown using a low-cost cascade. Prioritizes llms.txt for structured docs, uses web fetch/search tools for extraction. Use when you need to fetch documentation, resolve web URLs to markdown, search for technical content, or build context from web sources.
npx skill4agent add d-o-hub/rust-self-learning-memory web-doc-resolver| Platform | Fetch Tool | Search Tool |
|---|---|---|
| opencode | | |
| claude code | | |
| blackbox | | |
| Python script | Auto-detects available tools | Auto-detects available tools |
https://origin/llms.txt# Resolve a URL
python scripts/resolve.py "https://docs.rust-lang.org/book/"
# Resolve a query
python scripts/resolve.py "Rust async programming"
# JSON output
python scripts/resolve.py "query" --json
# Custom max chars
python scripts/resolve.py "query" --max-chars 4000
# Force specific backend
python scripts/resolve.py "query" --backend httpx# Check for llms.txt
webfetch https://example.com/llms.txt
# Fetch URL
webfetch --format markdown https://docs.rust-lang.org/book/
# Search
websearch "Rust book documentation"# Check for llms.txt
WebFetch(url="https://example.com/llms.txt")
# Fetch URL
WebFetch(url="https://docs.rust-lang.org/book/")
# Search
WebSearch(query="Rust book documentation")# Check for llms.txt
web_fetch(url="https://example.com/llms.txt", prompt="Extract all content")
# Fetch URL
web_fetch(url="https://docs.rust-lang.org/book/", prompt="Extract main content")
# Search
web_search(query="Rust book documentation")# Using Python script (auto-detects backend)
python scripts/resolve.py "https://docs.rust-lang.org/book/"
# Or use platform tool directly
webfetch https://docs.rust-lang.org/book/ # opencode# Using Python script
python scripts/resolve.py "Rust async programming best practices 2026"
# Or use platform tool directly
websearch "Tokio runtime configuration options" # opencodehttps://origin/llms.txt/llms.txtcd .agents/skills/web-doc-resolver
python -m pytest tests/ -vpython samples/sample_basic.py
python samples/sample_json.pyscripts/resolve.pytests/test_resolve.pysamples/sample_basic.pysamples/sample_json.pyreference.md