Generate a test from a prompt
generate_testGenerates a full node:test file from a prompt or ticket, using one test block per described behavior. Optionally imports the target module and returns the file to write under test/.
Instructions
Generate a FULL node:test file (path + content) from a prompt and/or a ticket — one test() block per described behaviour, not just the single boilerplate stub. Optionally imports a target module. Read-only: returns the file for you to write under test/.
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>"
},
"name": "generate_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module | No | Import specifier for the module under test, e.g. ../server/crm.js. | |
| prompt | No | Plain-English behaviours to test (one per line or 'and'-separated). Optional if ticket is given. | |
| ticket | No | Seed title/description/filename from this ticket. | |
| project | Yes |