add_case
Create a new test case in TestRail using a section ID and title. Optionally set custom fields with valid system names from get_case_fields.
Instructions
Create a new test case in TestRail. The create operation requires knowing valid field names that are returned by get_case_fields tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | The title of the test case | |
| fields | No | A flat key-value map of case fields. The server merges all entries directly into the root of the TestRail API request body — there is no nested "fields" key in the API call. Must use system_name values from get_case_fields. Example: {"priority_id": 2, "template_id": 1, "labels": [1, 2]} Call get_case_fields with project_id first if field names are not already known. Using an unknown field name (e.g. 'label_ids') will result in an error. | |
| section_id | Yes | The ID of the section where the case should be created. Use query_section (action: "many") to find available sections |