doc_index_repo
Index a GitHub repository's documentation by fetching .md and .txt files, parsing sections, and saving to local storage for efficient AI agent navigation.
Instructions
Index a GitHub repository's documentation. Fetches .md/.txt files, parses sections, and saves to local storage. Embeddings auto-enable when a provider is configured (GOOGLE_API_KEY, OPENAI_API_KEY, openai-compatible + JDOCMUNCH_OPENAI_COMPAT_URL + JDOCMUNCH_OPENAI_COMPAT_MODEL, or sentence-transformers).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | GitHub repository URL or owner/repo string | |
| ref | No | Optional GitHub branch, tag, or commit-ish to index. If omitted, HEAD is used. The ref is resolved to a commit SHA before fetching content; repo@sha remains the durable lookup handle. | |
| use_ai_summaries | No | Use AI to generate section summaries. | |
| use_embeddings | No | Generate semantic embeddings for each section. true/false/"auto". "auto" (default) enables embeddings when an embedding provider is configured, including openai-compatible + JDOCMUNCH_OPENAI_COMPAT_URL + JDOCMUNCH_OPENAI_COMPAT_MODEL. | auto |
| name | No | Optional stored index name override. If omitted, the GitHub repo name is used. Must be a safe storage component: letters, numbers, dot, underscore, and hyphen only. | |
| incremental | No | When true (default), skip all HTTP fetches if the selected GitHub ref's commit SHA is unchanged; otherwise only re-index changed files. Set to false to force a full re-index. |