ssh_grep
Search remote text files on an SSH host using ripgrep with grep fallback, returning results as file:line:match.
Instructions
Search remote text files recursively with ripgrep, falling back to grep. Output format is file:line:match.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | File glob to restrict search (e.g. '*.js'). | |
| path | No | Absolute or relative path on the remote host. | . |
| invert | No | Invert match, returning lines that do NOT match (-v). | |
| target | Yes | SSH target in the form user@host[:port]. Uses the local SSH config and keys. | |
| pattern | Yes | ||
| ignore_case | No | Case-insensitive matching (-i). | |
| max_results | No | Stop reading each file after this many matches (-m). | |
| word_regexp | No | Match whole words only (-w). | |
| fixed_strings | No | Treat pattern as a literal string (-F). |