get_error_context
Extract raw log lines around an error to diagnose simulation failures. Provide the log path and target line number to retrieve surrounding context for debugging.
Instructions
Extract raw log text around a given error line. Typically used with first_line returned by parse_sim_log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Center error line number | |
| after | No | Number of lines after the target line. Default: 100 | |
| before | No | Number of lines before the target line. Default: 100 | |
| log_path | Yes | Absolute path to the simulation log, for example irun.log |