testrail_create_case
Create a new TestRail test case under the given sectionId. Returns the new case id + browse URL. ALWAYS confirm with the user via a chat bubble before calling — this writes to the customer's TestRail project. Use customStepsSeparated for BDD-shaped tests (each step gets action + expected result), customSteps for plain-text. Set refs to the originating Jira/AzDO story key (e.g. 'PROJ-123') so TestRail shows the linkback chip.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refs | No | Comma-separated reference keys (e.g. "PROJ-123,PROJ-124") shown as chips | |
| title | Yes | Case title (max 250 chars, will be trimmed) | |
| typeId | No | Case type_id (tenant-specific; omit for default) | |
| sectionId | Yes | TestRail section id to create the case under | |
| priorityId | No | Priority id (1-4 in stock TestRail; tenants may customise) | |
| customSteps | No | Plain-text steps (TestRail "Text" template) | |
| customPreconds | No | Preconditions text | |
| customStepsSeparated | No | Structured steps (TestRail "Steps + Expected Result" template) — preferred for BDD |