Create upload URLs
create_upload_urlsPrepare uploads of local files (photos, PDFs, audio, video) to Draftt, for clients that can run shell commands. Returns, per file, an upload_url and the url the file will have. A file goes up with: curl -X PUT -H "Content-Type: <content_type>" --data-binary @ "<upload_url>". The content type and the exact byte size must match what was declared, and the upload URLs expire after 10 minutes. The returned url works wherever an image or file goes: image_url and image elements in create_deck and edit_deck, or the url of an add_block op in edit_board. Works for boards and presentations; up to 50 files and 25MB each. A file already online needs no upload: its public URL works directly.
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": {
"board_id": "<board_id>",
"files": "<files>"
},
"name": "create_upload_urls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| board_id | Yes | Board or presentation that will own the files |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| resource | Yes |