update_test_case
Modify a dataset test case by updating its name, inputs, expected data, setup or cleanup source, or clearing selected fields while leaving omitted fields unchanged.
Instructions
Changes one test case of a Dataset. Fields you leave out are kept.
inputs replaces the inputs and works only on a test case created with inputs, not on a
Session-based one. expected replaces the expected data.
:param dataset_id: The Dataset's id.
:param test_case_id: The test case's id.
:param name: The new name.
:param inputs: The new pipeline inputs, as {name: value}.
:param expected: The new expected data.
:param setup_source: New Python source that runs before every replay.
:param cleanup_source: New Python source that runs after every replay.
:param clear: Fields to remove from the test case.
:returns: The test case, or an error message.
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": {
"dataset_id": "<dataset_id>",
"test_case_id": "<test_case_id>"
},
"name": "update_test_case"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| clear | No | ||
| inputs | No | ||
| expected | No | ||
| dataset_id | Yes | ||
| setup_source | No | ||
| test_case_id | Yes | ||
| cleanup_source | No |