ado_testcases_add_to_suite
Add existing test case work items to a static test suite in Azure DevOps. Provide project, plan ID, suite ID, and test case IDs.
Instructions
Add existing Test Case work items to a suite. Pass an array of work item IDs that have type 'Test Case'. Use ado_workitems_create with type='Test Case' to create new test cases first. Only works for staticTestSuite — dynamicTestSuite membership is query-driven. Requires vso.test_write PAT scope.
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": "<project>",
"planId": "<planId>",
"suiteId": "<suiteId>",
"testCaseIds": "<testCaseIds>"
},
"name": "ado_testcases_add_to_suite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| planId | Yes | Test plan ID | |
| project | Yes | Project that owns the test plan | |
| suiteId | Yes | Test suite ID | |
| testCaseIds | Yes | Work item IDs of the Test Case items to add (max 100 per call) |