Edit a Rootr document by anchor replace
rootr_editReplace an exact snippet of text in a Rootr document. Requires the exact text to find; fails with a clear error if missing or ambiguous, enabling precise targeted edits.
Instructions
Replace an exact snippet of text ("find") with new text ("replace") inside a Rootr document. Fails with a clear error if the snippet is missing or ambiguous (not unique), so read the document first to copy the exact text to find. Good for precise, targeted edits; use rootr_append instead when you are only adding new content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | Exact existing text to find (must be unique unless replaceAll is set) | |
| target | Yes | Document path (starting with "/") or node id | |
| replace | Yes | Text to replace it with | |
| replaceAll | No | Replace all occurrences instead of requiring uniqueness |