Rebuild Wiki Index
wiki.indexRebuildRegenerate the wiki index by scanning Sources, Concepts, and Entities folders. Replaces the entire index.md body — use after bulk page creation or when lint reports index mismatch.
Instructions
Regenerate wiki/index.md from a fresh scan of Sources/, Concepts/, and Entities/. Pages are grouped by category and sorted alphabetically; pass includeCounts:true to render counts on the section headings (e.g. ## Sources (12)). Idempotent and destructive — the existing index.md body is replaced wholesale, so any hand-edits there are lost. Use after bulk-creating pages outside the wiki tools, or as the cleanup step after wiki.lint reports indexMismatch. For incremental upkeep on a single source, prefer the proposedEdits returned by wiki.ingest instead.
Operates on the session-active vault (see vault.current — selectable via vault.select) unless an explicit vaultPath argument is passed, which always wins.
Examples:
Example 1 — Plain rebuild.:
{}Example 2 — Rebuild with counts on each section heading.:
{
"includeCounts": true
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeCounts | No | When true, append per-category counts (e.g. `Sources (12)`) to each section heading. Defaults to false. | |
| wikiRoot | No | Per-call wiki directory override. | |
| vaultPath | No | Per-call vault override. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changed | Yes | True if the tool altered vault state on this call; false if it was a no-op. | |
| target | Yes | The path or identifier the tool acted on. | |
| summary | Yes | Short human-readable summary of what happened. |