create_test_case
Create Azure DevOps Test Case work items with structured steps, optional requirement links, and optional test suite attachments.
Instructions
Create a Test Case work item with structured steps XML, optional TestedBy requirement link, and optional immediate attachment to a test suite
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": {
"title": "<title>"
},
"name": "create_test_case"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags to apply | |
| steps | No | Structured test steps (action + optional expectedResult) automatically encoded as Microsoft.VSTS.TCM.Steps XML | |
| title | Yes | Title of the Test Case work item | |
| planId | No | Optional test plan ID to immediately attach the created Test Case to (must be paired with suiteId) | |
| suiteId | No | Optional test suite ID to immediately attach the created Test Case to (must be paired with planId) | |
| areaPath | No | Area path | |
| priority | No | Priority (1-4) | |
| projectId | No | The ID or name of the project (Default: MyProject; required if AZURE_DEVOPS_DEFAULT_PROJECT is unset) | |
| assignedTo | No | Assignee email or display name | |
| description | No | Optional description for the Test Case (HTML format) | |
| iterationPath | No | Iteration path | |
| requirementId | No | Optional requirement / User Story / PBI work item ID to link via Microsoft.VSTS.Common.TestedBy-Reverse ("Tests") | |
| configurationIds | No | Optional test configuration IDs to assign when attaching to a suite (requires planId and suiteId) |