index_patch
Edits the root or Map/Journal index.md by applying old/new string patches with if_match, returning content hash and findings; use concept_patch for expanded indexes.
Instructions
Like concept_patch, for the root or a Map/Journal curated index.md (same edit forms; if_match required, from index_get with_hash). An expanded concept's own index.md is refused (expanded_index): use concept_patch. Returns path, content_hash, replacements, findings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Empty (root) or a Map/Journal name | |
| edits | No | ||
| reason | No | Why (commit trailer) | |
| if_match | Yes | ||
| new_string | No | ||
| old_string | No | ||
| replace_all | No |