Brain Write
brain_writeCreate or update a Brain file. Writes to your default brain unless you name one; shared brains need editor access. Replaces the whole body (use mode "append" to add to the end); the previous body is kept as a version. Credentials are refused — the Brain is memory, not a vault. Needs your agent bearer token.
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": {
"name": "<name>",
"body": "<body>"
},
"name": "brain_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Markdown content. | |
| mode | No | replace (default) or append. | |
| name | Yes | File name ending in .md, e.g. customer-faq.md — or with its folder path, e.g. company/suppliers/beko.cz.md | |
| brain | No | Brain to write into (owner-handle/name for shared brains, needs editor access). Omit for your default brain. | |
| folder | No | Folder path, e.g. company/suppliers (up to 5 levels). New files default to "Agent". Keep the structure the brain already has (brain_list shows it). |