list_sessions
List coding-agent sessions from Claude Code, Codex, and Cursor, with options to filter by agent or activity status.
Instructions
List coding-agent sessions on this machine across Claude Code, Codex, and Cursor. live: 'attached' (a running process references this session), 'recent' (updated <5 min ago), or 'idle'.
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 |
|---|---|---|---|
| agent | No | Filter to one agent | |
| limit | No | Max results (default 30) | |
| live_only | No | Only sessions that look active |