hound_file_context
Retrieve surrounding lines of code for a given file and line number to understand context of a search match.
Instructions
Get extended context around a specific line in a file. Useful for understanding code around a search match.
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>",
"file": "<file>",
"line": "<line>"
},
"name": "hound_file_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name (e.g., "owner/repo") | |
| file | Yes | File path (e.g., "src/auth/jwt.ts") | |
| line | Yes | Center line number | |
| context | No | Lines of context before and after (default: 10) |