Check Upload Status
check_upload_statusCheck existing uploads and determine which files still need uploading.
Call this BEFORE upload_pdf or create_upload_page to avoid duplicate uploads. Also call it after the user uploads via the widget to discover the new file and its job_id.
Returns 'session_id' (always — store it!), plus:
'already_uploaded': files from pending_filenames that are already in this session, with reusable job_ids (empty when pending_filenames is omitted)
'needs_upload': files not yet in this session (must be uploaded)
'jobs' / 'count': every file currently stored in this session
You MUST call this tool before any upload, and you MUST act on its result immediately. When you passed pending_filenames:
'needs_upload' is non-empty → call upload_pdf (single) or batch_upload_pdf (multiple) with ONLY the files listed in 'needs_upload'. Pass the same session_id. Do NOT upload files in 'already_uploaded'.
'needs_upload' is empty → skip uploading entirely; use the job_ids from 'already_uploaded'.
When pending_filenames is omitted, 'already_uploaded' and 'needs_upload' are always empty and carry NO meaning — read 'jobs' instead. A non-empty 'jobs' means the files are already here: use those job_ids and do NOT ask the user to upload again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | Session ID from a previous upload_pdf or create_upload_page call. If omitted, a new session_id is generated and ALL pending files are treated as needs_upload (new workflow). | |
| pending_filenames | No | Bare filenames to check, e.g. ['FileA.pdf', 'FileB.pdf']. Never include directory paths like '/mnt/data/FileA.pdf'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobs | Yes | ||
| count | Yes | ||
| reply_note | Yes | ||
| session_id | Yes | ||
| instructions | Yes | ||
| needs_upload | Yes | ||
| already_uploaded | Yes |