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).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "claude_update_persistence"
}
}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 |