chat_history_read
Read recent chat-history JSONL entries to recover decisions, notes, and phase markers from earlier sessions, returning the resolved path and matching entries with newest last.
Instructions
Read recent entries from the chat-history JSONL (agents/runtime/.agent-chat-history; legacy agents/.agent-chat-history accepted) to recover decisions, notes and phase markers from an earlier session. Returns the resolved path and matching entries, newest last.
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": "chat_history_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last | No | Return only the most recent N entries, after other filters apply. | |
| path | No | History-file override; default is the standard location. | |
| around | No | Timeline anchor: return the entries around this ref (from a detail:"index" row) instead of the filtered list — depth_before/depth_after neighbours plus the anchor. Refs are within-file ordinals; rotation invalidates them. | |
| detail | No | 'index' returns compact rows (ref, t tag, preview, tokens_estimate) — scan, then re-read refs via `around` or a filter. 'full' (default) returns whole entries. | full |
| session | No | Filter to a single 16-char session id. | |
| entry_type | No | Filter by the `t` tag (e.g. note, decision, phase). | |
| depth_after | No | Neighbours after the anchor (with `around`). Defaults to 3. | |
| depth_before | No | Neighbours before the anchor (with `around`). Defaults to 3. |