session_context
Manage AI session context by scoring token budgets, compacting transcripts, pruning superseded reads, tracking mistakes and metrics, and storing or recalling project decisions and notes.
Instructions
Context hygiene: 'budget' (score S-F), 'compact' (fold transcript), 'prune' (drop superseded reads), 'mistakes', 'metrics', 'remember' (store a decision/note/preference), 'recall' (read project memory), 'forget' (remove one entry by id), 'recall_transcript' (BM25 search over prior session transcripts).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "session_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | forget: entry id; recall_transcript: <session>:<index> drill-down | |
| kind | No | remember: what kind of memory to store | |
| text | No | remember: the memory text (preferences as key=value) | |
| files | No | remember: files this decision touches | |
| limit | No | ||
| model | No | ||
| query | No | recall: optional filter; recall_transcript: search terms | |
| scope | No | recall_transcript: transcript scope (default project) | |
| since | No | recall_transcript: ISO lower bound | |
| until | No | recall_transcript: ISO upper bound | |
| action | No | ||
| workspace_dir | No | ||
| transcript_path | No |