core_memory_replace
Replace the first occurrence of a substring in a pinned core memory block to update or compact the stored content.
Instructions
Replace the first occurrence of old_text with new_text in the pinned core-memory block. Returns error: not_found if old_text is absent, or core_memory_full if the result would exceed char_limit. Use this to update or compact the block.
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": {
"old_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "core_memory_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Memory scope for isolation | global |
| namespace | No | Namespace within scope (e.g., project name, team name) | |
| old_text | Yes | Substring to find (first occurrence) in the core-memory block | |
| new_text | Yes | Replacement text for the first occurrence of old_text |