Save a test
save_testAdd a test to the agent's saved suite, or update one (test_id). Expectations are deterministic and case-insensitive: the reply must contain any/all of given substrings, must not contain others, and named tools must be called ('*' globs instance-suffixed tools).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short test name, e.g. 'Refuses out-of-scope legal advice'. | |
| prompt | Yes | The exact user message the test sends the agent. | |
| test_id | No | Update this existing test (id from list_tests) instead of adding one. | |
| agent_id | Yes | Target agent's id (from list_agents / create_agent / get_catalog view=agents). | |
| tool_called | No | Tools that must be called during the run ('*' globs). | |
| contains_all | No | The reply must contain EVERY one of these substrings. | |
| contains_any | No | The reply must contain AT LEAST ONE of these substrings. | |
| not_contains | No | The reply must contain NONE of these substrings. | |
| expect_status | No | How the run must end (default completed). |