suggest_tests
Suggest test cases for a code element by analyzing its structure and similar existing tests. Identifies test names, types, and coverage gaps.
Instructions
Suggest test cases for a code element. Requires elementId — use the id field returned by graph_query or code_explain (not a symbol name). Returns suggested test names, types, and coverage gaps based on the element's structure and similar existing 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": {
"elementId": "<elementId>"
},
"name": "suggest_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elementId | Yes | Code element ID | |
| limit | No | Number of suggestions | |
| profile | No | Response profile | compact |