list_sessions
Retrieve recent agent sessions with aggregated stats for call count, total cost, token usage, and start time. Use it to locate a session ID or review spending.
Instructions
List recent agent sessions with aggregated stats — call count, total cost, token usage, and start time. Use this to find a session_id before calling get_session or to get a cost overview.
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": "list_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of sessions to return (default 20, max 100). |