Request a file-upload link
request_file_uploadCreate a one-time upload slot for a PDF (or form photo) when direct file input is unavailable.
For a document on the user's device, or a chat attachment that open_pdf's
`file` parameter cannot carry (the tool call does not accept a file, or the
file arrives without a download_url); tool arguments cannot carry file
bytes reliably. Documents with payment-card data, PHI, government
identifiers, passwords, API keys/tokens, or MFA/OTP codes are not accepted.
Returns `upload_url`, a page where the user opens and drops the file (one
click); `post_url`, which accepts the file as a multipart POST
(`curl -sf -F "file=@document.pdf" <post_url>`) for headless runtimes with
network access to justfill.app (n8n, a server shell; chat sandboxes
usually have none); and `upload_token` for open_pdf. A base64 copy or a
shrunk file is no substitute: modified bytes break detection.
The slot is single-use and expires in 30 minutes.
When to use:
- Use `open_pdf(file=...)` directly if the client passes a chat attachment
with a `download_url`, or `open_pdf(url=...)` if the file is at a public
HTTP/HTTPS link.
- Call `request_file_upload` only as a fallback when neither `file` nor `url`
can deliver the original document, then pass the returned `upload_token` to
`open_pdf(upload_token=...)`.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||