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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"if_match": "<if_match>"
},
"name": "index_patch"
}
}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 |