search_history
Perform full-text search on indexed shell commands. Supports keyword and prefix queries, returning newest matches with timestamp, shell, cwd, and exit code.
Instructions
Read-only. Full-text search (SQLite FTS5, stemmed, Unicode-aware) over all indexed shell commands. Supports keyword and prefix queries — e.g. docker build, git reb*. Returns the most recent matches first, each with timestamp, shell, cwd, and exit code when available. Local index only; nothing is sent anywhere. If a query returns nothing you may need reindex first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of matching commands to return, newest first. Default 20. | |
| query | Yes | FTS5 query. Plain keywords are ANDed; append `*` for prefix match. E.g. `npm install`, `kubectl get po*`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| results | No |