add_case
Create a new test case in TestRail by specifying a section ID and title, with optional custom fields mapped from the case fields schema.
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 |
|---|---|---|---|
| section_id | Yes | The ID of the section where the case should be created. Use get_sections to find available sections | |
| 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. |