search_file
Find case-insensitive matches in a repository file and return the lines with surrounding context.
Instructions
Search within a specific file for a pattern (case-insensitive substring match) and return matching lines with context.
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>",
"path": "<path>",
"pattern": "<pattern>"
},
"name": "search_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to repo root | |
| repo | Yes | Repository identifier (owner/repo) | |
| pattern | Yes | Search pattern (case-insensitive substring) | |
| context_lines | No | Lines of context around matches (0-20, default: 3) |