find_related_code
Search a GitHub repository for identifiers, error messages, or phrases to find related code files before triaging an issue.
Instructions
Search the code of a repository for a term. Requires GITHUB_TOKEN because GitHub code search needs authentication.
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": {
"repo": "<repo>",
"query": "<query>"
},
"name": "find_related_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| limit | No | ||
| query | Yes | Identifier, error message or phrase to look for |