Upload a WordPress plugin or theme
wp_upload_extensionInstall the builder's own plugin or theme on a live WordPress site from an uploaded archive (the uploadId of an upload made with this serviceId, after its PUT). The archive is built from inside the plugin or theme folder (tar -czf extension.tgz -C .). A plugin needs a PHP file at the root with a Plugin Name: header, a theme a style.css with Theme Name:. A folder of the same slug is replaced. Refusals: invalid-argument, not-a-target, invalid-archive, too-large, not-live, migration-open, deploy-open, busy, failed.
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": {
"serviceId": "<serviceId>",
"uploadId": "<uploadId>",
"type": "<type>",
"slug": "<slug>"
},
"name": "wp_upload_extension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | the folder name it installs as, for example my-plugin | |
| type | Yes | ||
| activate | No | switch it on after installing | |
| uploadId | Yes | the uploadId of an upload made with this serviceId, after its PUT | |
| serviceId | Yes | the id of a service on this account |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No |