retrieve_code_context
Fetch surrounding source lines for a given mapped error position to view the original code context.
Instructions
Show the original source code lines surrounding a mapped error location.
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": {
"originalFile": "<originalFile>",
"line": "<line>"
},
"name": "retrieve_code_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | 1-based line number in the original source | |
| column | No | 0-based column number | |
| contextLines | No | Number of lines to show before and after the target line | |
| originalFile | Yes | Absolute path to the original TypeScript source file |