brain_context
Retrieve code neighbors, linked vault knowledge, and recent access events for a file path before editing it. It pulls from a merged knowledge graph of code and Obsidian vault.
Instructions
THE tool to call before touching a file: given an absolute or relative file path, returns what the brain knows — the matching node, its code neighbors, linked vault knowledge pages (gotchas/decisions about it), and recent cross-agent access events.
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": {
"file_path": "<file_path>"
},
"name": "brain_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |