find_tests_for
Locates tests that cover a code symbol via call-graph reachability and direct references under conventional test paths.
Instructions
The tests of a symbol: those that reach it through the call graph ([dN] = N calls away, even if they never name it) and those that name it, under conventional test paths (tests/, spec/, tests/, test_*, _test., .spec., *Test.cs, *Tests.cs); test_path_pattern replaces them. describe_symbol and impact include the same tests.
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": {
"symbol": "<symbol>"
},
"name": "find_tests_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results. | |
| source | No | Source name. Omit when only one source applies. | |
| symbol | Yes | Identifier to find tests for. | |
| test_path_pattern | No | Regex for test file paths, replacing the defaults. |