remote_search
Search text or regex across files on remote machines, using ripgrep when available and grep otherwise. Find symbols, references, and content matches over a persistent SSH connection.
Instructions
在远端按内容搜索(优先 ripgrep,远端没装时回退 grep)。适合跨文件找符号、找引用。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | 搜索起点,默认 SSH_REMOTE_BASE 指定的目录 | |
| type | No | 按文件类型过滤:go / sql / md / yaml 等;与 include 二选一 | |
| context | No | 每个匹配上下各带几行上下文,默认 0 | |
| include | No | 文件名过滤,如 "*.go";不填则不限 | |
| pattern | Yes | 要搜索的文本或正则 | |
| maxResults | No | 最多返回行数,默认 100 | |
| caseSensitive | No | 大小写敏感,默认 true |