get_fix_context
Retrieves context needed to locate and fix a TraceBug bug report: failing request and response snippet, triggering user action, first error with resolved stack frames, and failing-test availability.
Instructions
One-call fix starter for a TraceBug bug report: the failing request (with response snippet), the user action that triggered it, the first error with source-map-resolved top stack frames, and whether a generated failing test is available. Call this when you're ready to locate and fix the bug.
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": {
"file": "<file>"
},
"name": "get_fix_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The report to read: a path to a TraceBug export file (.html), absolute or relative to the server's base directory — or just the filename, or a fragment of the filename or report title. Get exact paths from list_bug_reports. | |
| searchDir | No | Directory to search for .map files when resolving stack frames (default: current working directory). |