Rebuild Wiki Index
wiki.indexRebuildRegenerate the wiki index by scanning source directories, grouping pages by category and sorting alphabetically. Optionally display per-category counts. Use after bulk page creation or to resolve index mismatches.
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 |
|---|---|---|---|
| wikiRoot | No | Per-call wiki directory override. | |
| vaultPath | No | Per-call vault override. | |
| includeCounts | No | When true, append per-category counts (e.g. `Sources (12)`) to each section heading. Defaults to false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | The path or identifier the tool acted on. | |
| changed | Yes | True if the tool altered vault state on this call; false if it was a no-op. | |
| summary | Yes | Short human-readable summary of what happened. |