claude_update_persistence
Update persistent configuration sections in agents, projects, or memory files by replacing or appending content at a specified anchor.
Instructions
Replace or append to a section in one of the persistence files.
Required: file, section_anchor, new_content. Optional: mode (replace|append) — replace the entire section vs append inside it (default replace).
Safe-mode constraint: in Settings.mode == "safe", updating AGENTS.md
requires confirm=true. Returns matched=true when the section_anchor
was found; matched=false when the anchor was not found and no edit
happened (so you can detect typos before silent appending).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| req | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| matched | Yes | ||
| new_size_bytes | Yes | ||
| section_anchor | Yes |