tsm_codegen_small_patch
Generate small code snippets or function-level patches for single functions, regex, SQL, scripts, or unit tests using a budget model, reducing token consumption on the main model.
Instructions
Generate small code snippets or function-level patches using a budget model. Scoped to single functions, regex, SQL, scripts, or unit test samples. NOT for multi-file or architectural designs.
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": {
"task": "<task>"
},
"name": "tsm_codegen_small_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Description of what the code snippet should do | |
| language | No | Target programming language | |
| constraints | No | Additional constraints or requirements | |
| existing_code | No | Existing code context for the patch |