list-sessions
Lists active conversation sessions with metadata and supports deleting a single session or clearing all sessions.
Instructions
List all active conversation sessions with metadata, or manage sessions
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 |
|---|---|---|---|
| action | No | Action: list (default), delete (single session), clear (all sessions) | list |
| sessionId | No | Session ID for delete action | |
| workingDir | No | With delete: remove only the session for this directory. Without it, every session with that ID is removed (one sessionId can exist once per directory). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| stats | No | ||
| action | Yes | ||
| deleted | No | ||
| success | No | ||
| sessions | No | ||
| sessionId | No |