cypress_run_spec
Run a specific Cypress test spec file in the background, returning immediately so you can continue working.
Instructions
Run a specific Cypress test spec file. Returns immediately and runs in background.
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": {
"spec": "<spec>"
},
"name": "cypress_run_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Run only tests matching this pattern (test title grep) | |
| spec | Yes | Path to spec file relative to workspace (e.g., cypress/e2e/example.cy.ts) | |
| headed | No | Run with visible browser window (default: true for debugging) | |
| browser | No | Browser to use (default: chrome) |