Generate PHP Controller
scaffold_controllerGenerate a PHP controller that calls the corresponding service, keeping the presentation layer free of queries and validation. Avoids overwriting existing files unless overwrite is enabled.
Instructions
Generates a PHP Controller for a resource (presentation layer only). The controller only calls the corresponding Service: zero queries and zero inline validation. Does not overwrite existing files unless overwrite=true.
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": {
"resourceName": "<resourceName>"
},
"name": "scaffold_controller"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| methods | No | ||
| overwrite | No | ||
| resourceName | Yes |