Request File Upload URL
request_file_upload_urlStage an upload for a PDF that is attached to the conversation, for clients that can execute shell commands. Returns a presigned upload URL plus a ready-made curlCommand that streams the file to it. Only use this tool if you are able to run that command; if you cannot, skip it and call upload_file directly with url (when the PDF is reachable over HTTPS) or with file as base64 plus fileName. After calling this tool, run the returned curlCommand to upload the file. CRITICAL: wait for it to complete and return HTTP 200 before calling upload_file — the staged entry holds no bytes until then, and upload_file will fail. The upload URL expires in 10 minutes. Once the upload has succeeded, call upload_file with the returned uploadId. If the command fails with a network, DNS, or 'host not in allowlist' error, the client's code-execution sandbox is blocking outbound requests to this server — do not retry the same command. Report what blocked it, then either fall back to upload_file with file (base64), or, in Claude, tell the user they can allow it under Settings → Capabilities → Code execution → Domain allowlist by selecting 'All domains', after which the upload can be retried.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | Filename with extension (e.g. 'contract.pdf') |