Initialize Wiki
wiki.initScaffold the LLM-Wiki layout in an Obsidian vault by creating Sources, Concepts, and Entities folders and seeding index, log, and schema files. Run once per vault before using other wiki tools.
Instructions
Scaffold the LLM-Wiki layout under the vault: creates Sources/, Concepts/, Entities/ folders and seeds index.md, log.md, and wiki-schema.md (the schema reference the agent reads back later). Use this once per vault before calling any other wiki.* tool. Idempotent by default — existing files are preserved; pass force:true to re-seed index.md/log.md/wiki-schema.md (folders are never deleted). Returns { created: string[], skipped: string[] } so the agent can confirm what changed. Resolves the wiki location from wikiRoot arg → KOBSIDIAN_WIKI_ROOT env → wiki/.
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 — First-time scaffold in the active vault.:
{}Example 2 — Re-seed schema/index/log files in a custom wiki directory.:
{
"wikiRoot": "knowledge",
"force": true
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Re-seed index.md, log.md, and wiki-schema.md even if they already exist. Folders are never deleted. Defaults to false (idempotent). | |
| wikiRoot | No | Per-call override for the wiki directory under the vault. Defaults to KOBSIDIAN_WIKI_ROOT (env), then 'wiki'. | |
| vaultPath | No | Per-call vault override. Wins over the session-active vault and OBSIDIAN_VAULT_PATH for this call only. |
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. |