create_webapp
Creates a new web application on a RunCloud server, assigning its domain, system user, stack, PHP version, and resource limits. Use it to provision hosted apps with the required server and domain settings.
Instructions
Create a new web application 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>",
"name": "<name>",
"domainName": "<domainName>",
"user": "<user>"
},
"name": "create_webapp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Web application name | |
| user | Yes | System user ID | |
| stack | No | Stack (native, hybrid) | |
| serverId | Yes | The ID of the server | |
| timezone | No | Timezone (e.g., UTC) | |
| stackMode | No | Stack mode (production, development) | |
| domainName | Yes | Primary domain name | |
| phpVersion | No | PHP version (e.g., "php81") | |
| publicPath | No | Public path (default: /) | |
| memoryLimit | No | Memory limit in MB | |
| openBasedir | No | Open basedir restriction | |
| postMaxSize | No | Max POST size in MB | |
| maxInputTime | No | Max input time in seconds | |
| maxInputVars | No | Max input variables | |
| allowUrlFopen | No | Allow URL fopen | |
| xssProtection | No | Enable XSS protection | |
| processManager | No | Process manager (dynamic, ondemand, static) | |
| disableFunctions | No | Comma-separated disabled functions | |
| maxExecutionTime | No | Max execution time in seconds | |
| uploadMaxFilesize | No | Max upload file size in MB | |
| sessionGcMaxlifetime | No | Session GC max lifetime in seconds | |
| clickjackingProtection | No | Enable clickjacking protection | |
| mimeSniffingProtection | No | Enable MIME sniffing protection | |
| processManagerMaxChildren | No | Max children processes | |
| processManagerMaxRequests | No | Max requests per process | |
| processManagerStartServers | No | Start servers (for dynamic) | |
| processManagerMaxSpareServers | No | Max spare servers (for dynamic) | |
| processManagerMinSpareServers | No | Min spare servers (for dynamic) |