create_upload_link
Creates a one-time upload link so users can upload files from their browser directly into a project when the chat's code sandbox can't access outside hosts.
Instructions
Create a one-time link where the user uploads a file from their own browser into a project, for a file in a chat whose code sandbox can't reach outside hosts (claude.ai and Claude Desktop chats). destination is "knowledge_base" (the file becomes a searchable document) or "project_files" (the original is kept byte for byte for download). filename is the file's name with its extension; the link accepts only a file with that extension.
Returns {upload_link, expires_at, filename, destination, max_bytes, note} plus `signed_id` (knowledge_base: what
kb_add_file takes) or `s3_key` (project_files: what register_project_file takes). The page needs no sign-in,
works for one browser and one file, and expires about 14 minutes after the link is made. The file is in the
project only once the step-2 tool has run after the upload.
Knowledge Base: PDF, DOCX, PPTX, XLSX, XLS, CSV, TXT, MD, HTML, HTM. Project files: PPTX, PPT, XLSX, XLS, DOCX,
DOC, PDF, CSV, MD, TXT, JSON, PNG, JPG, JPEG, GIF, SVG, WEBP. Up to 256 MB.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| project_id | Yes | ||
| destination | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |