Update Brain
update_brainAdd a new note to a brain; the server resolves storage from the brain record (BlackOps for DB-backed brains, a GitHub commit for vault-backed ones). Use this whenever the user says "update the brain", "add this to the brain", or "log this in the brain". Call list_brains first for the brain_id if you do not have it; create_brain makes a new brain. A DB-backed brain recompiles immediately; a vault-backed one on its next compile. Use post_notes_write (with brain_id) only for control over the filename or path. A brain's sanitize rules may hold a write: follow details.sanitize_hold.
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": {
"brain_id": "<brain_id>",
"markdown_content": "<markdown_content>"
},
"name": "update_brain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Your name, on every write: Duet/<channel name> or Grok Bot/<bot name>. | |
| brain_id | Yes | Brain UUID (from list_brains) | |
| allow_secrets | No | ||
| note_filename | No | Filename without .md. Defaults from section_title or the date. | |
| section_title | No | Title for this note — used as the filename slug (e.g. "Threads Integration") | |
| commit_message | No | Git commit message. | |
| sanitize_answer | No | ||
| markdown_content | Yes | Markdown content for the new note to add to the brain |