Debug a failing test
squally-debug-failureRetrieve every attempt of a failed test, oldest first, with error, stack, and Copy-for-AI prompt to pinpoint why it failed. Provide filePath when the test name is ambiguous.
Instructions
Every attempt of one test in one run, oldest first, each with the error, the stack and the Copy-for-AI prompt (the same text the Squally UI puts on the clipboard). This is the tool for 'why did this test fail'. If the test name is ambiguous, pass filePath.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | A run id from GET /projects/{projectId}/runs - or any shard's id of a sharded run. | |
| filePath | No | The spec file of the test, as stored (e.g. tests/checkout.spec.ts); an empty value means a test with no file. Pass it exactly as shown in Squally; do not URL-encode, the server does. Needed only when the name exists in several files - the ambiguous_test error lists them. | |
| testName | Yes | The full test name as Squally stores it (the Playwright title path), for example "checkout flow > completes payment". Pass the name exactly as shown in Squally; do not URL-encode, the server does. A name used in several spec files also needs filePath. | |
| projectId | Yes | A project id from GET /projects. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | ||
| test | Yes | ||
| project | Yes | ||
| attempts | Yes |