get_context
The messages around one message, in its chat, oldest first; it has hit: true.
Instructions
The messages around one message, in its chat, oldest first; it has hit: true.
Use it when a search result is relevant but needs what was said around it: the question it answers, the reply, what "it" refers to.
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": {
"memory_id": "<memory_id>"
},
"name": "get_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Messages after it. Default 5. | |
| before | No | Messages before it. Default 5. | |
| memory_id | Yes | The id of a search result, exactly as given |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes |