Index Docs
index_docsFetches and caches documentation from a GitHub repository or website, returning a docs_id needed to search and retrieve structured content later.
Instructions
Fetch and cache documentation from GitHub or website. REQUIRED before search_docs/get_docs_content. Auto mode tries GitHub first (cleaner), falls back to scraping. Returns docs_id for subsequent operations.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "index_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | GitHub repo URL (https://github.com/owner/repo) or docs website URL | |
| type | No | Source type (default: auto) | |
| force_refresh | No | Re-fetch even if cached |