Create PDF Upload Page
create_upload_pageDisplay an interactive PDF upload widget directly in the chat.
Use this when the user wants to upload a local PDF file from their device. This is the standard upload method for MCP clients (e.g. Claude) where file attachments with download URLs are not available.
Do NOT call upload_pdf when using this tool — the widget handles the upload automatically. The widget renders inline and the PDF viewer appears after the user selects a file. Do NOT call view_pdf after this tool; the widget manages the UI. Never tell the user the file is still uploading; the widget handles the spinner.
After the user uploads via the widget and notifies you, call check_upload_status(session_id=) to discover the uploaded file and its job_id before proceeding with any operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | Existing session ID to continue an ongoing workflow. If omitted, a new session is created. Always pass the same session_id throughout the entire conversation to keep all files grouped together. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| reply_note | Yes | ||
| session_id | Yes | ||
| upload_url | Yes | ||
| instructions | Yes | ||
| upload_token | Yes |