refactor_with
Refactor code using a chosen AI agent, optionally specifying a goal of performance, readability, or modularity.
Instructions
Refactor code using a specific agent. Optionally specify a goal: performance, readability, or modularity.
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": {
"agent": "<agent>",
"code": "<code>"
},
"name": "refactor_with"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Code to refactor | |
| goal | No | Refactoring goal | |
| agent | Yes | Agent to refactor with | |
| timeout | No | Timeout in ms |