Get Error Context
get_error_contextRetrieves surrounding log lines for a given line id to view full stack traces and event sequences around a failure.
Instructions
Given a line id (from search_logs), return a wider window of surrounding log lines — useful for viewing a full stack trace or the sequence of events around a failure.
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": {
"lineId": "<lineId>"
},
"name": "get_error_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lineId | Yes | The line id returned by search_logs | |
| contextSize | No | Lines before/after to include (default 5) |