characterize_module
Generate characterization tests for each pure function in a Python module to capture current behavior and enable safe refactoring.
Instructions
Generate characterization tests for every pure top-level function in a module. Returns a list of CharacterizationResult, one per function (or per-function error dict). Failures don't abort the whole call.
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": {
"file_path": "<file_path>"
},
"name": "characterize_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| max_cases_per_function | No | ||
| coverage_threshold | No | ||
| max_rounds | No | ||
| output_dir | No | ||
| allow_impure | No | ||
| name_pattern | No |