engine_php_rename
Renames a PHP file to a new path while preserving its type: modules remain modules and root scripts remain root scripts.
Instructions
Rename a php file: path is what it is called now, new_path what it becomes. Both stay of one kind - a module (units/...) stays a module, a root script a root script.
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": {
"path": "<path>",
"new_path": "<new_path>"
},
"name": "engine_php_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| new_path | Yes |