Build context
bm_contextFollow a note’s knowledge graph up to five relation hops, filtering recent changes and optionally omitting note bodies to map connected notes before reading selected ones.
Instructions
Follow the Basic Memory knowledge graph from a note: the note, its observations, and the notes its relations reach, up to depth hops (1-5). identifier is a path, permalink, memory:// URL, or a pattern such as 'specs/*'. since limits related results to recent changes. compact returns the graph without note bodies; read chosen notes with bm_read.
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": {
"identifier": "<identifier>",
"project": "<project>"
},
"name": "bm_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number. | |
| depth | No | Relation hops to follow (1-5). | |
| since | No | How far back to look: '7d', '24h', '2 days ago', 'last week', or a date. Windows shorter than one day are widened to one day. | 7d |
| compact | No | Omit note bodies and observations; keep the graph shape. | |
| project | Yes | Required project name, 'workspace/project', or project external id. Discover projects with bm_project(command='list'). Paths are relative to this project; a qualified path must agree with it. | |
| page_size | No | Primary results per page (1-50). | |
| identifier | Yes | Where to start: a note path, permalink, memory:// URL, or a pattern such as 'specs/*'. | |
| max_related | No | Most related results to return (0-100). | |
| output_format | No | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |