korely_get_context
Recall what Korely knows for one end user as a prompt-ready block (the primary recall path). Call before answering. user_id scopes to one end user; agent_id to one agent's namespace (what korely_add wrote under it). token_budget: 50 to 8000 tokens. known_as_of (ISO date) rebuilds the block as Korely knew it then. exclude_sessions leaves out the work sessions a coding assistant saved, and the facts only they state. reader (your agent's name): the block then opens with what changed since you last read, and keeps which facts you were handed; it filters nothing. changes=all: every kind of change.
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": {
"query": "<query>"
},
"name": "korely_get_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| reader | No | Your agent's own name, by the rule of `agent_id`. With it, this read keeps the ids of the facts it hands over as true, with the time, for 90 days after the last read unless the install sets READ_MARKS_RETENTION_DAYS, and the context block of this reader opens with what changed since in the facts it was handed (agent notices), each change told at most once. It filters nothing, and a read of the past (`as_of`, `known_as_of`) or of the history (`include_invalidated`) keeps nothing and tells nothing. Not authenticated: whoever holds the key can give any name. | |
| changes | No | Which changes the block tells a `reader`. Left out: every kind in a memory with an end user, and in an agent's memory with no end user only the explicit ones (corrected, forgotten, stated by a caller), since there the closures read from memories were mostly wrong when measured. `all`: those too. | |
| user_id | No | ||
| agent_id | No | ||
| known_as_of | No | ||
| token_budget | No | ||
| exclude_sessions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |