Search command outputs
search_outputSearch over recorded terminal commands and their outputs. Find every command that printed a specific message, with context like time, directory, and exit code.
Instructions
Full-text search over recorded terminal commands AND their outputs — finds e.g. every command that ever printed 'connection refused'. Returns plain text, one block per match: id, time, cwd, exit code, the command line, and a snippet around the match (secrets are masked by default). Use this to FIND which command said something; use list_commands to browse recent history without a search term, and get_output to read a full output once you have an id. No matches returns an empty result, not an error. Read-only: never re-runs anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | only commands run in this directory or beneath it (absolute path, or '.' for the server's cwd) | |
| 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) | |
| query | Yes | text to search for in command lines and outputs (substring match; case-insensitive) | |
| since | No | only commands newer than this: 30m, 2h, 3d, 1w, or 2006-01-02[ 15:04] |