Start PDF upload
start_pdf_uploadStarts a PDF upload. Returns upload_id, a one-time upload_url, its expiry (one hour), and a ready curl PUT command to run from the file's folder. Nothing is sent. Then call create_draft_from_upload.
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": {
"file_name": "<file_name>",
"byte_size": "<byte_size>"
},
"name": "start_pdf_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| byte_size | Yes | The exact size of the file you will upload, in bytes. | |
| file_name | Yes | The PDF's file name, ending in .pdf. The upload command reads this file from the folder it runs in. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| curl | Yes | ||
| upload_id | Yes | ||
| expires_at | Yes | One hour after the upload was created. | |
| upload_url | Yes | `PUT` the PDF here. The URL is its own credential, so send no API key. |