Upload files
uploadCreate a prepared version of a project. The live publication stays unchanged. Takes file content only: no local paths and no ZIP archives. Send a large site across several calls with complete set to false.
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": {
"project": "<project>"
},
"name": "upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Required on the completing call if the project has a version. replace makes the sent files the whole site; patch adds or replaces the sent files and keeps the others of the online version. | |
| files | No | Use text for text files and base64 for binary files. | |
| project | Yes | The project key, such as client-report. | |
| complete | No | Set false to keep the upload open for more files in later calls. | |
| entrypoint | No | The file served at the site's root, set on the completing call. Defaults to the root index.html or the only file; patch keeps the current one. | |
| deletePaths | No | Paths to remove. Only with patch, on the completing call. | |
| uploadContinuationId | No | From an earlier call with complete false. Continues that upload. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| version | Yes | null while the upload is open. | |
| studioLink | Yes | Opens the project in Studio. | |
| previewLink | Yes | Where the user can check and publish the version. null while the upload is open. | |
| uploadContinuationId | No | Present while the upload is open. |