Compress a PDF
pdf_compressStructurally compress a PDF (remove redundancy, optimize structure) and return the reduced document. Use this when the user wants a smaller PDF.
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": {
"file": "<file>"
},
"name": "pdf_compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Base64-encoded file bytes (no data: URL prefix). |