Update Brain
update_brainAdd a new note to a brain — no target_id or file path knowledge required; the server resolves storage from the brain record (BlackOps directly 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. To create a new brain from scratch, call create_brain. A DB-backed brain recompiles immediately; a vault-backed one picks the note up on its next compile. Use post_notes_write (with brain_id) only when you need lower-level control over the filename or relative path.
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 |
|---|---|---|---|
| brain_id | Yes | Brain UUID (from list_brains) | |
| allow_secrets | No | ||
| note_filename | No | Override the filename (without .md extension). Defaults to slugified section_title or date-based name. | |
| section_title | No | Title for this note — used as the filename slug (e.g. "Threads Integration") | |
| commit_message | No | Git commit message. Defaults to "Add brain note: <filename>" | |
| markdown_content | Yes | Markdown content for the new note to add to the brain |