Request an upload URL
request_uploadA one-time PUT url for an archive: the first step of a deploy, a new project, or a WordPress plugin or theme upload. The archive is a gzip tar of the folder (tar -czf project.tgz -C .) sent with content-type application/gzip; the answer carries the exact curl command and the uploadId. With serviceId the upload belongs to that service; without it, to a new project. The url takes one file up to 25 MiB and expires after 15 minutes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "request_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serviceId | No | the service the archive is for; left out for a new project with no server yet |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No |