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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pattern": "<pattern>",
"target": "<target>"
},
"name": "grep"
}
}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). |