grep
Search file contents across repositories by text or regex, optionally filtered by file pattern, to locate code and documentation and return GitHub links with line numbers.
Instructions
Search file contents across repos. Returns GitHub links with line numbers.
Args: query: Text or regex pattern. repo: Repo name or 'all'. file_pattern: Filter like '.go' or '.yaml'.
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": {
"query": "<query>"
},
"name": "grep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | all | |
| query | Yes | ||
| file_pattern | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |