patch_memory_section
Update a single Markdown section in a memory note without altering frontmatter, other sections, or the Timeline audit trail. Replace or append content safely by targeting one heading.
Instructions
Surgically updates a Markdown section (e.g. '## Compiled Truth') in a memory note without modifying frontmatter, other sections, or the Timeline audit trail.
Args: memory_id: Target memory ID to patch. section: Section heading to replace or create (default 'Compiled Truth'). new_content: New Markdown text for the section. workspace_dir: Workspace root directory. scope: Lookup scope ('local' or 'global'). append: Whether to append to existing section content instead of replacing. origin: Optional provenance identifier '@'. Falls back to X-Agent-Id@X-Host session header or 'botex'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"memory_id": "<memory_id>"
},
"name": "patch_memory_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | local | |
| append | No | ||
| origin | No | ||
| section | No | Compiled Truth | |
| memory_id | Yes | ||
| new_content | No | ||
| workspace_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||