Compress PDF
compress_pdfCompress a PDF to reduce its file size and return a new versioned file.
MANDATORY: Before calling this tool, call 'check_upload_status' with the session_id to confirm the file exists and retrieve the latest job_id. Skipping this check and calling compress_pdf directly is FORBIDDEN.
Each call creates a NEW job_id (with parent_job_id linking to the source). The original PDF version is preserved unchanged — previous versions remain accessible. After compression completes, call 'view_pdf' with the new job_id to display the result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job ID of the PDF to compress (use the latest job_id from check_upload_status). | |
| session_id | Yes | Session ID that the job belongs to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| filename | Yes | ||
| mime_type | Yes | ||
| reply_note | Yes | ||
| session_id | Yes | ||
| download_url | Yes | ||
| instructions | Yes | ||
| original_size | Yes | ||
| parent_job_id | Yes | ||
| compressed_size | Yes | ||
| size_reduction_percent | Yes |