refactor
Refactor code to improve structure by describing the goal and selecting files.
Instructions
Refactor code using Aider
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": {
"refactor_goal": "<refactor_goal>"
},
"name": "refactor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Files to refactor | |
| project_path | No | Absolute path to project directory (default: current directory) | . |
| refactor_goal | Yes | What to refactor and why |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |