write_tests
Generate tests for your code covering both the golden path and realistic edge cases. Specify the code or file path, and optionally choose a testing framework.
Instructions
Write tests covering the golden path and realistic edge cases for given code.
Provide exactly one of code or file_path. Set framework (e.g.
"pytest", "jest") to match your project's conventions; otherwise the
model infers one from the code's language.
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": "write_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| think | No | ||
| file_path | No | ||
| framework | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |