Inspect a Cypress run
cypress_get_failureInspect Cypress test run failures to retrieve errors, diffs, stack traces, screenshots, page context, and output for debugging E2E tests.
Instructions
Details of a run from cypress_run. view "failures" (default): each failure with source excerpt, error, diff, stack, screenshot. "page": the page at one failure (DOM/ARIA outline, URL, console and network errors, command log, similar selectors). "tests": every test. "screenshots": image links, the last attempt of each retried test. "output": the end of Cypress's output.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cypress_get_failure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | failures | |
| image | No | Add the screenshots as images, scaled to 1000 px wide | |
| runId | No | runId returned by cypress_run. "last" is the latest run of this server, which can be another agent's. | last |
| failure | No | Only this failure, by its number in the run result | |
| attempts | No | view "screenshots": also the earlier attempts of retried tests |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false when the tool could not do its job (not when tests fail) | |
| data | Yes | ||
| tool | Yes | ||
| runId | No | ||
| summary | Yes | ||
| nextActions | Yes |