add_test_cases
Add test cases to a workspace to build or replace a regression test suite. Each case requires a query and optionally a target answer for scoring model responses.
Instructions
Add test cases to this workspace.
Set replace: true to clear the existing suite and load a fresh one. Set replace: false (default) to append to the existing suite.
Each test case needs at least a query. targetAnswer is required for scoring. Omit targetAnswer only for exploratory runs where you score manually.
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": {
"workspaceId": "<workspaceId>",
"testCases": "<testCases>"
},
"name": "add_test_cases"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | Yes | ||
| testCases | Yes | Test cases to run | |
| replace | No | Replace all existing test cases. Default false (append). |