navigate_to_line
Jump directly to any line in a large file, showing surrounding context and highlighting the target line for easy navigation.
Instructions
Jump to a specific line in a large file with surrounding context lines. Highlights the target line.
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": {
"filePath": "<filePath>",
"lineNumber": "<lineNumber>"
},
"name": "navigate_to_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the file | |
| lineNumber | Yes | Line number to navigate to (1-indexed) | |
| contextLines | No | Number of context lines before and after (default: 5) |