compress_pdf
Reduce PDF file size without altering visual content. Optimize documents to save storage and speed up sharing.
Instructions
Compress/optimise a PDF to reduce file size without changing visual content.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"documentId": "<documentId>"
},
"name": "compress_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metadata | No | Custom metadata to attach | |
| linearize | No | Linearise the PDF to enable fast web view (first page renders sooner) | |
| documentId | Yes | The source document ID to compress | |
| preSignedUrlExpiresIn | No | Pre-signed download URL expiry in seconds (60–86400) |