refactor_and_optimize
Refactor and optimize code by locating files via case-insensitive, deep path discovery, then applying improvements to the specified file.
Instructions
Refactors and optimizes code. Handles case-insensitivity and deep path discovery.
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": "refactor_and_optimize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| custom_rules | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |