Compress PDF
compress_pdfMake a PDF smaller by recompressing and downscaling large images and cleaning unused data. Returns the original unchanged if it can't be made smaller. Uses one render.
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": "compress_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF to compress. | |
| level | No | low keeps the most quality; high makes the smallest file. Default medium. | |
| remove_metadata | No | Also strip title, author and XMP metadata. |