list_codex_sessions
Lists OpenAI Codex CLI sessions from ~/.codex/sessions with IDs, titles, working directories, models, git branches, and updated timestamps; filter by query or cwd.
Instructions
List OpenAI Codex CLI sessions from ~/.codex/sessions with session_id, title, working directory, model, git branch, and updated timestamp.
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_codex_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum sessions to return (default 25). | |
| query | No | Optional substring filter on title, cwd, model, or ID. | |
| cwd_filter | No | Optional substring filter on working directory. |