Start a file upload
create_uploadStart an upload of one file for import_media: a PDF, or a PNG, JPEG or WebP image, up to 25 MB.
Returns uploadUrl and uploadId. Send the file's bytes with an HTTP PUT to uploadUrl, with the Content-Type header it returns (for example: curl -X PUT -H "Content-Type: application/pdf" --data-binary @board.pdf ""). Then call import_media with the uploadId. The URL expires after 30 minutes.
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": {
"fileName": "<fileName>",
"mimeType": "<mimeType>",
"projectId": "<projectId>"
},
"name": "create_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | Name of the file, for example board.pdf. | |
| mimeType | Yes | Type of the file. | |
| projectId | Yes | ScreenWeaver project id (from list_projects). |