index_repository
Index a code repository and generate wiki documentation by parsing source files, extracting semantic code chunks, and creating embeddings and markdown pages.
Instructions
Index a repository and generate wiki documentation. This parses all source files, extracts semantic code chunks, generates embeddings, and creates wiki markdown files.
No prior indexing required.
Example: {"repo_path": "/path/to/repo"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Absolute path to the repository to index | |
| output_dir | No | Optional output directory for wiki (default: {repo}/.deepwiki) | |
| languages | No | Optional list of languages to include (default: all supported) | |
| full_rebuild | No | Force full rebuild instead of incremental update (default: false) | |
| llm_provider | No | LLM provider for wiki generation (default: from config) | |
| embedding_provider | No | Embedding provider for semantic search (default: from config) | |
| use_cloud_for_github | No | Use cloud LLM (Anthropic Claude) for GitHub repos. Faster and higher quality but requires API key. (default: from config) | |
| skip_wiki | No | Skip wiki page generation (index and embed only). Pages will generate on demand when read. (default: false) | |
| generation_mode | No | Override wiki generation strategy for this invocation. If not provided, uses the config file setting. | |
| prefetch_drain | No | Enable drain mode to backfill all remaining pages in the background after indexing. Most useful with 'hybrid' or 'lazy' mode. (default: from config) |