get_pdf_upload_url
Get a presigned URL to upload a PDF that a DM automation will hand out.
Use this to attach a downloadable PDF (a recipe, a guide, a price list) to
an automation: PUT the raw PDF bytes to upload_url as a plain HTTP PUT
with Content-Type: application/pdf — do NOT route the bytes through this
MCP connection. Once the PUT succeeds, pass public_url as the url of a
dm_buttons entry with kind="pdf" in create_automation / update_automation.
filename is only for your own reference; the stored object is always a
.pdf under a durable prefix, so the link keeps working long-term.
upload_url expires in expires_in seconds.
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": {
"workspace_id": "<workspace_id>"
},
"name": "get_pdf_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | attachment.pdf | |
| workspace_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expires_in | Yes | ||
| public_url | Yes | ||
| upload_url | Yes |