Get Test Case Details
get_testcase_detailsRetrieve complete test case details—errors, stack traces, steps, console logs, and artifact links—by testcase ID or name, optionally scoped to a run; filter to failed steps to reduce debugging noise.
Instructions
Get full details of a test case — errors, stack traces, steps, console logs, and artifacts. Use testcase_id (the Playwright pw_test_id) for the most precise lookup; it can be used alone for latest detail or paired with testrun_id for exact run-scoped detail. testcase_name resolves through test history; combine it with testrun_id to scope to specific run(s), otherwise the latest run is used. Always pass steps_filter="failed_only" when debugging — it drops unrelated passing setup/hook steps and keeps failed branches plus required parent context, cutting noise significantly. Every stored artifact comes back in evidence[] — trace, video, screenshots, and for a visual failure the expected/actual/diff images — each with its attempt index, a url, and an expires_at. Download what you need as soon as you receive it: the links are minutes-scale by design. If one has expired, call this tool again to mint fresh links rather than treating the artifact as missing. traceDownloadUrl points at the first FAILING attempt, which on a flaky test is not the last one. A batch stops at about 100,000 characters: warnings says so and remaining lists each test left, with its testrun_id, to request next.
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": {
"projectId": "<projectId>"
},
"name": "get_testcase_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by_title | No | Deprecated alias for testcase_name (kept for backward compatibility). | |
| projectId | Yes | Project ID | |
| testcaseid | No | Deprecated alias for testcase_id (kept for backward compatibility). | |
| testrun_id | No | Run scope for testcase_id / testcase_name lookup. Comma-separated (max 20). | |
| testcase_id | No | Exact test case ID(s) — Playwright pw_test_id, comma-separated (max 20). | |
| by_fulltitle | No | ||
| steps_filter | No | Use "failed_only" to drop passing setup/hook steps | |
| by_testrun_id | No | Deprecated alias for testrun_id (kept for backward compatibility). | |
| history_limit | No | Maximum history timeline cells to keep when include_history=true. | |
| testcase_name | No | Test case title — resolves through test history; scoped by testrun_id when given, else latest matching detail. | |
| by_testrun_ids | No | Comma-separated (max 20) | |
| include_history | No | Attach DH /analytics/test-history output to returned case detail items. |