← ClaudeAtlas

write-patchlisted

Surgical edit — insert/replace under a specific heading, block id, or frontmatter key. Use when you need to modify ONE section of a long note without rewriting the whole file. EN triggers: "edit the X section in Y", "update the heading X", "modify the block X", "replace the content under X", "insert under heading Y". FR triggers : "édite la section X dans Y", "mets à jour le titre X", "modifie le bloc X", "remplace le contenu sous X", "insère sous le titre Y". Example / Exemple: EN: "in Indicators/ATP.md, replace the content under heading 'Module 5::Pendant le trade' with: ..." FR: "dans Indicators/ATP.md, remplace le contenu sous le titre 'Module 5::Pendant le trade' par : ..."
tboome33/obsidian-mcp-router · ★ 1 · AI & Automation · score 74
Install: claude install-skill tboome33/obsidian-mcp-router
# write-patch Call the obsidian-router `patch_file` MCP tool with arguments parsed from $ARGUMENTS. ## Arguments **Required**: - `path` — file path relative to vault root. - `operation` — `append`, `prepend`, or `replace`. - `targetType` — `heading`, `block`, or `frontmatter`. - `target` — the target identifier: * `heading` → the FULL heading path joined by `::` (e.g. `Section 1::Subsection`). Just the heading name alone won't work; the parent path is required. * `block` → the block id without the leading `^` (e.g. `atp-config`). * `frontmatter` → the property name (e.g. `status`). - `content` — new content. String for heading/block; for frontmatter accepts string/number/boolean/array/object (types preserved). **Optional**: - `vault` — omit for default. - `targetDelimiter` — override the heading delimiter (default `::`). - `createTargetIfMissing` — create the target if absent (heading/frontmatter only). - `applyIfContentPreexists` — skip if target already contains the content (idempotency). - `trimTargetWhitespace` — trim whitespace around the target before applying. - `ifMatch` — a `contentSha256` from a prior `get_file`. Whole-file precondition: the patch is refused with a 409 conflict if the file changed since you read it. (The precondition is checked before patching; the patch itself is not hash-locked — this catches patching stale content, it does not make the patch atomic.) ## Argument parsing from $ARGUMENTS This tool has many parameters. If $ARGUMENT