grep
Search remote file contents with regular expressions over SSH. Returns matching lines with line numbers, grouped by file, capped at 250 matches; skips binary and .git.
Instructions
Search file contents with a regular expression (POSIX ERE on the remote grep; ripgrep-only syntax like \p{...} is unsupported). Returns matching lines with line numbers, grouped by file, capped at 250 matches. REMOTE: the search runs on selected target (ssh target.ssh); binary files and .git are skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File or directory to search, on the remote host selected target. Defaults to the target root; a relative path resolves against it. | |
| target | Yes | Exact target name from remote_ssh_targets list. Always select the intended host explicitly. | |
| include | No | One glob filter for which files to search (e.g. "*.ts"). Not a list; negation is not supported. | |
| pattern | Yes | Regular expression to search for (extended regex). |