map_locator_to_source
Locates the exact line of test code responsible for a failing browser action by analyzing the execution stack from Playwright traces.
Instructions
Maps a failing browser interaction (or a specific action index) to its corresponding line of code in the test file using the execution stack from the test runner.
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": {
"trace_path": "<trace_path>"
},
"name": "map_locator_to_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace_path | Yes | Absolute path to trace.zip, or a URL (https://) to download it from | |
| action_index | No | Index of the action (0-based). Defaults to the failing action. |