edit
Replace exact text in an existing note without rewriting the whole topic. Update specific content while preserving the rest, with options to replace all occurrences.
Instructions
Exact-string replacement inside an existing topic, like the Claude Code Edit tool.
Fails if the topic does not exist. Fails if 'old' is not found. Fails if 'old' appears more than once and replace_all is false. Bumps the 'updated' timestamp. To change title, tags, or expiry, use write instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | Replacement text | |
| old | Yes | Exact text to replace. Must match character-for-character, including whitespace | |
| topic_id | Yes | Topic id, e.g. 'projects/atlas-ports' | |
| replace_all | No | Replace every occurrence of old; default is exactly one occurrence |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |