tdd_refactoring_guidance
Generate test-driven development refactoring guidance for Python code. Provides step-by-step instructions to write tests, refactor, and verify changes without modifying code.
Instructions
Generate TDD-based refactoring guidance: test first, refactor, test again
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": {
"content": "<content>"
},
"name": "tdd_refactoring_guidance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Python code content to refactor | |
| test_path | No | Path to test directory (optional) | |
| function_name | No | Specific function/class to refactor (optional) |