session_history
Retrieve every command from a shell session in chronological order, with paging. Optionally specify a session_id; if omitted, defaults to a recent session (may not be yours).
Instructions
Every recorded command of one shell session, oldest first. Pass a session_id you already have (from list_sessions, find_agent_session or resolve_current_agent_session); with none it falls back to whatever session is most recent, which may not be yours.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows in this page (default: 50) | |
| detail | No | Add directory, duration, executor and session to each row (default: false) | |
| offset | No | Rows to skip; pass the response's next_offset to page forward | |
| session_id | No | Session ID (defaults to most recent — pass one explicitly to be sure) |