recent_sessions
List recent active sessions from newest to oldest, with details like session ID, project, turns, and last activity. Optionally filter by current working directory.
Instructions
List the most recently active past sessions, freshest first — use to see the current state of work and how fresh the index is (the top entry's last_activity_human is the effective freshness). Also surfaces the sessions of a thread split across resume-created session_ids so you can reassemble the arc.
scope_cwd: pass your current working directory to restrict to the current project/repo (worktrees collapse to the repo root); omit for all projects. Each entry: session_id, project, turns, last_activity (epoch), last_activity_human, label (the session's first user prompt).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| scope_cwd | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |