brain_state_save
Save structured task or entity state under an exact key so agents can resume precisely; overwrites existing records with the same type and key.
Instructions
Save structured state (task snapshot, entity record) under an exact key - retrieved later by key, never by semantic search. This is the right place for task state an agent must resume precisely; free-text knowledge belongs in brain_remember. data is stored verbatim as JSON (object or array, max 256 KiB); saving again with the same type+key overwrites.
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": {
"type": "<type>",
"key": "<key>",
"data": "<data>"
},
"name": "brain_state_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | unique id within the type | |
| data | Yes | the state to persist, verbatim | |
| type | Yes | record namespace, e.g. task / order / customer |