Generate Test Cases with AI
tm_generate_test_casesStart an AI generation of test cases from a requirement prompt, optionally grounded by Jira issue keys and attached files, using the project's and organization's instructions. The prompt and any attached files are sent to Google Gemini, the AI model behind the generator. Volume is test_scenario_limit x per_scenario_test_cases_limit, at most 50 per call. The project, folder and limits are checked before anything is billed. Each call spends AI generation credits, which are not refunded, and a retry starts and bills a new generation. Returns a request_id and a browser progress URL within about 15 seconds; generation takes about 30 to 90 seconds. Nothing is saved: check it with tm_get_test_case_generation and file it with tm_save_generated_test_cases.
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_id": "<project_id>",
"folder_id": "<folder_id>",
"prompt": "<prompt>"
},
"name": "tm_generate_test_cases"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Optional reference files (requirement docs, specs, data sheets, screenshots), each with its name and its bytes base64-encoded in content_base64. Supported: .pdf, .docx, .txt, .csv, .xlsx, .json, .xml, .jpg, .jpeg, .png, .gif, .bmp, .webp; at most 5 files of 10 MB each. They are sent to Google Gemini. | |
| prompt | Yes | The requirement or instructions to generate test cases from | |
| jira_ids | No | Optional Jira issue keys to use as requirement context | |
| folder_id | Yes | Test Cases folder the cases are saved into later (one sub-folder per scenario) | |
| project_id | Yes | Project ID (ULID) | |
| test_scenario_limit | No | Most scenarios to generate (default 3) | |
| per_scenario_test_cases_limit | No | Most test cases per scenario (default 3) |