change_php_cli_version
Switch the PHP CLI version on a RunCloud server by specifying the server ID and target PHP version, ensuring command-line tasks use the intended PHP release.
Instructions
Change PHP-CLI version on a server
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": {
"serverId": "<serverId>",
"phpVersion": "<phpVersion>"
},
"name": "change_php_cli_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serverId | Yes | The ID of the server | |
| phpVersion | Yes | PHP version (e.g., "php74", "php80", "php81") |