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}]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | Yes | ||
| project_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |