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.
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": {
"log_path": "<log_path>",
"line": "<line>"
},
"name": "get_error_context"
}
}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 |