read_ide_errors
Retrieve source code context around compiler error locations from an IDE screenshot. Provide the project directory and error file/line pairs to get the relevant code for debugging.
Instructions
Read source code context around compiler error locations.
After spotting errors in an IDE screenshot, call this tool with the parsed error locations to get the source code around each error.
Args: project_dir: Path to the project directory on disk. errors: JSON array of error locations. Each entry is an object with 'file' and 'line' keys, e.g.: [{"file": "Unit1.pas", "line": 42}, {"file": "MainForm.pas", "line": 15}]
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": {
"project_dir": "<project_dir>",
"errors": "<errors>"
},
"name": "read_ide_errors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | Yes | ||
| project_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |