mindbase_atomic_write_context
Replace context.md with new content using an atomic write that snapshots the prior version, enforces a 400-line cap, and logs every update.
Instructions
Write new content into context.md atomically. Steps: (1) snapshot current context.md → state/builder/snapshots/.md, (2) tmpwrite + rename, (3) append log entry. Enforces 400-line cap by truncating overflow to sources/research/.md.
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": {
"content": "<content>"
},
"name": "mindbase_atomic_write_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | New context.md body (full file replacement) | |
| projectId | No | Project id; defaults to the current project (config.json) |