sessions
List a memory's recorded agent runs oldest first, filtering by repo or date to return metadata and IDs for follow-up tools.
Instructions
Enumerate a memory's sessions, oldest first. Metadata only — when it started and when its last indexed turn was, harness, repo, turn count, id, and the prompt each opened with, which is the ask a session started from, not what it became. Filter by repo or date to get the session ids the other verbs take; a whole memory can run to thousands of rows.
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": "sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Keep only sessions whose checkout resolved to this repo, as `owner/name` | |
| limit | No | Rows to list, keeping the most recent. More than the maximum cannot fit in one reply — walk with `offset` instead. Zero is an error, not every match. | |
| since | No | Keep only sessions that started on or after this date, `YYYY-MM-DD` | |
| until | No | Keep only sessions that started on or before this date, `YYYY-MM-DD` | |
| memory | No | Memory to list, as it stands — `<org>/<repo>`, an `hf://…` URI, a local path, or `local`. Omitted, the server's memory, with the sessions this host has not finished pushing listed from the local memory when the host is bound to it. | |
| offset | No | Skip this many of the most recent matches before taking `limit`, to walk a listing back through time. The closing line names the offset that continues, and a given offset always names the same session. |