Save generated test variants
save_generated_testSubmit generated test variants for a ticket, dedupe near-identical tests and receive runnable file contents plus a manifest for writing.
Instructions
Ingest the model-generated test variants for a ticket (submit them as variants: [{model, content}]). Tags each with its model, dedupes identical/near-identical assertions across variants (whitespace + variable names normalized; a fully-duplicate test block is dropped and noted), and returns the runnable files to write (test/..test.js) plus a queryable manifest (test/.variants.json). Read-only: it returns file contents for you to write.
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": {
"project": "<project>",
"ticket": "<ticket>",
"variants": "<variants>"
},
"name": "save_generated_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticket | Yes | ||
| project | Yes | ||
| variants | Yes | One entry per model variant. |