discover_unity_tests
Discover runnable Unity Test Framework test cases in Edit Mode, Play Mode, or both to get exact full names, assemblies, categories, run state, and stable unique names before running tests.
Instructions
Discover runnable Unity Test Framework test cases in Edit Mode, Play Mode, or both. Returns exact full names for run_unity_tests plus assembly, categories, run state, and stable Test Framework unique names. Requires com.unity.test-framework and a settled running Unity Editor.
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": "discover_unity_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Test modes to discover | all |
| search | No | Optional case-insensitive name, assembly, or category filter | |
| timeoutMs | No | Maximum time to wait for Unity test discovery | |
| maxResults | No | Maximum matching test cases to return |