Find ATF Tests
find_atf_testsFind ServiceNow ATF tests by searching name, description, or category. Returns sys_ids to use for running tests.
Instructions
Search for ATF (Automated Test Framework) tests on a ServiceNow instance. Find tests by name, description, or category. Returns a list of matching tests with their sys_ids, which can then be passed to the run_atf_test tool for execution.
Use this when you need to discover which ATF tests exist before running them.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_atf_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of tests to return. Default is 25. | |
| active | No | Filter by active status. Defaults to true (only active tests). Set to false to find only inactive tests. | |
| category | No | Filter by test category (e.g., "Custom", "Module"). Maps to the sys_atf_test.category field. | |
| instance | No | The ServiceNow instance auth alias (e.g., "myinstance", "prod"). If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| search_term | No | Text to search for in test name and description fields. Case-insensitive contains matching. Example: "incident" finds tests with "incident" in the name or description. |