find_tests
Identify tests that cover a given symbol, or discover which symbols a test file exercises, so you know what to run before changing code.
Instructions
Map a symbol to the tests that exercise it — or a test file to the symbols it exercises.
If 'target' is a test file path, returns the modules/symbols it pulls in.
Otherwise treats it as a symbol name and returns the test files + test_*
functions that reference it. Use before changing code to know what to run.
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": {
"target": "<target>"
},
"name": "find_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | A symbol name (-> tests covering it) OR a test file path (-> what it exercises). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |