generate_test
Generate tests for any code using an AI agent. Pick from Claude, Codex, Gemini, or Copilot; auto-detect or specify the framework.
Instructions
Generate tests for code using a specific agent. Auto-detects or specify test framework.
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": {
"agent": "<agent>",
"code": "<code>"
},
"name": "generate_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Code to generate tests for | |
| agent | Yes | Agent to generate tests with | |
| timeout | No | Timeout in ms | |
| framework | No | Test framework (auto-detected if omitted) |