/guardx:history — Browse scan history
Quickly browse and retrieve your scan history with detailed results.
Trigger
User invokes /guardx:history or asks to "show scan history", "list past scans", or "what scans have been run".
Steps
-
Call the
list_scan_historyMCP tool:Tool: list_scan_history Arguments: {} -
Present the results as a table:
# Scan ID Date Vulnerability Leak Status Findings Prompt Hash 1 <id><scannedAt>CRITICAL complete 5 <hash>- Colour-code vulnerability in text: critical/high in bold, low/secure unformatted.
- Show the most recent 20 scans. If there are more, note the total count.
-
If the history is empty, tell the user no scans have been saved yet and suggest running
/guardx:scan. -
If the user names a specific scan or asks to "see details" for one, call
get_scan_resultwith that ID and invoke/guardx:interpreton the result.
Notes
- Scans are auto-saved each time
scan_system_promptruns — no manual save step needed. - The scan ID can be passed to
/guardx:reportto generate an HTML or SARIF report.