list_sessions
List sessions from Claude Code, Codex, Copilot, Cursor, Gemini, AGY, Grok, and OpenCode, prioritizing live agents. Filter by working directory, agent, branch, or query.
Instructions
List Claude Code, Codex, Copilot, Cursor, Gemini, AGY, Grok, and OpenCode sessions. Live agents first.
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 |
|---|---|---|---|
| cwd | No | Working directory to match (canonical or prefix) | |
| agent | No | agy, claude, codex, copilot, cursor, gemini, grok, or opencode | |
| limit | No | ||
| query | No | ||
| branch | No | Git branch name | |
| live_only | No | ||
| include_archived | No |