get_session
Retrieve an agent session's LLM calls in chronological order. Default summaries include model, status, tokens, cost, and tools; enable include_messages for full bodies.
Instructions
Retrieve the LLM calls of an agent session in chronological order. By default each call is a compact summary (index, model, status, error reason, tokens, cost, latency, tool names, sizes) — sessions can be megabytes, so full prompt/response bodies are returned only with include_messages=true, and single calls are better fetched via the explain tool using the action_id from a summary row.
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": {
"session_id": "<session_id>"
},
"name": "get_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session ID passed via x-agenticledger-session-id. | |
| include_messages | No | Return full message bodies for every call. Default false; can be very large. |