List recent commands
list_commandsBrowse recent terminal commands with filterable details like exit code, directory, and time. Read-only history view for auditing or debugging, without re-running anything.
Instructions
List the user's recent terminal commands (most recent first) as plain text: one entry per command with id, time, cwd, exit code, duration and output size — command lines only, no output text. Supports the same filters as search_output, e.g. exit='fail' for recent failures or cwd='.' for this project only. Use this to browse history; use search_output when looking for specific text, and get_output to read what a command actually printed. Read-only: never re-runs anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | only commands run in this directory or beneath it | |
| exit | No | only this exit code (a number), or 'fail' for any nonzero | |
| host | No | only commands from this synced machine ('local' = this machine) | |
| limit | No | max results (default 20, max 100) | |
| since | No | only commands newer than this: 30m, 2h, 3d, 1w, or a date | |
| until | No | only commands older than this (exclusive; same forms as since) |