Compress-pdf
compress-pdfFull Description
Operation
- Compress an uploaded PDF (by storage key) and return a downloadable link.
Prerequisites
- On ChatGPT with native attachments, call upload-document-native first to obtain a storage key.
- On other hosts (e.g. Claude MCP), use the upload-document widget to obtain a storage key.
- If a storage key already exists from a prior step, pass it directly.
Inputs
- fileKey: storage key of the source PDF.
- level: compression intensity.
Validation
- fileKey must belong to the authenticated user namespace (uploads/<userId>/... or outputs/<userId>/...).
Output
- New PDF key + download URL + size. Use the returned key for subsequent operations.
Response guidance
- If the original size is known in context, mention compression ratio/percent. Do not invent sizes.
Example
- fileKey="uploads/abc/my.pdf", level="recommended"
Parameters (1 required, 1 optional)
fileKeystringStorage key of the uploaded PDF (example: "uploads/<uuid>/file.pdf").
levelstringCompression intensity: low=best quality, recommended=balanced, extreme=smallest size.
lowrecommendedextremerecommended