List Codex sessions
codex_list_sessionsList recorded Codex sessions with their ID, name, working directory, and last update from disk. Find a session ID to resume or fork with codex_resume or codex_fork.
Instructions
List recorded Codex sessions with their id, name, working directory and last update, read straight from disk. Use it to find a session_id for codex_resume or codex_fork.
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": "codex_list_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Only sessions whose working directory matches this path. | |
| limit | No | Maximum number of sessions to return. Defaults to 20. | |
| query | No | Case-insensitive substring match on the thread name or id. |