Local Codex work sessions
codex_local_sessionsList recent local Codex CLI sessions by last update, exposing session ID, thread name, and timestamp for scripted use; bypasses the interactive-only codex resume picker.
Instructions
List recent local Codex CLI sessions — the ones codex resume picks from — most recently touched first. Reads the undocumented ~/.codex/session_index.jsonl index directly, since codex resume itself is an interactive-only picker with no scriptable output. Only exposes what that index carries: session id, current thread name, and last-updated time — not live/idle status or working directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max sessions to return, most recently updated first. |