reindex
Re-parses shell history files to update the SQLite index, making recent commands searchable. Safe to run repeatedly.
Instructions
Re-parses the local shell history files (~/.zsh_history, ~/.bash_history) and the hook's extended log into the SQLite index. Idempotent — already-indexed commands are skipped by hash, so it is safe to call repeatedly. Run it after a burst of shell activity to make recent commands searchable. Reads only local files; writes only to ~/.terminal-history-mcp/. Takes no arguments. Returns counts of parsed / inserted / skipped entries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parsed | No | History-file lines parsed this run. | |
| skipped | No | Rows skipped because already indexed. | |
| inserted | No | New rows added from history files. | |
| ext_applied | No | Extended-log records merged into existing rows. | |
| ext_inserted | No | Extended-log records inserted as new rows. |