suggest_refactoring
Analyzes PHP files to identify refactoring opportunities: extract methods, reduce complexity, improve framework usage, split large classes.
Instructions
Analyze a PHP file and suggest refactoring opportunities: extract methods, reduce complexity, improve framework usage, split large classes.
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": {
"filePath": "<filePath>"
},
"name": "suggest_refactoring"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the PHP file to analyze |