ecp_cpanel_import_start
Start a background cPanel website import as PHP apps: copy files and MySQL data, rewrite WordPress database settings, and optionally attach domains. Returns a job_id to poll for status.
Instructions
Import websites from a cPanel server into this account as PHP apps: copies each site's files and its MySQL database (into a new database here), rewrites a WordPress site's wp-config.php to the new database, and optionally attaches the site's domain if this account already has it. Runs in the background - returns a job_id; poll ecp_cpanel_import_status until state isn't 'running'. Nothing on the cPanel server is changed. For a non-WordPress site whose database should come along, pass its cPanel database credentials in database; otherwise only files are copied.
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": {
"connection": "<connection>",
"sites": "<sites>",
"confirm": "<confirm>"
},
"name": "ecp_cpanel_import_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sites | Yes | ||
| confirm | Yes | ||
| connection | Yes |