sage_get_history
Retrieve recent local command runs to find a run_id for viewing raw output, explaining errors, or suggesting fixes. Displays compact metadata like exit code, duration, and timestamp.
Instructions
List recent local SAGE command runs. Use to find a run_id for sage_show_raw, sage_explain_error, or sage_suggest_fix. Returns compact metadata such as run_id, command summary, exit_code, duration, timestamp, and compression ratio. Read-only: reads the local SAGE database only and does not execute commands.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of recent commands to retrieve (most recent first) | |
| failed_only | No | Filter to commands with non-zero exit code only |