get_test_case
Fetch a Zephyr Scale test case by key, optionally specifying which fields to return. Step IDs are included for safe script editing.
Instructions
Read a Zephyr Scale test case by key (GET /testcase/{testCaseKey}). Optionally restrict the payload with fields. STEP_BY_STEP scripts come back with per-step ids — those ids are required to edit steps safely via update_test_case (add_test_steps handles them automatically).
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": {
"testCaseKey": "<testCaseKey>"
},
"name": "get_test_case"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Return only these fields, e.g. ["key","name","status","testScript"]; sent to the API as a comma-separated list | |
| testCaseKey | Yes | Test case key, e.g. PROJ-T123 |