pdf_compress
Shrink a PDF. Default aims for about 50% smaller: tidies structure first (text untouched), then shrinks pictures only as much as needed. level: auto (default), medium, strong. targetFileSize (such as 2MB or 500KB) is the size to end at, for auto; default is half the original.
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": {
"fileBase64": "<fileBase64>"
},
"name": "pdf_compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Level: one of auto, medium, strong. | |
| fileBase64 | Yes | The input file as a base64 string, without a data: prefix. | |
| targetFileSize | No | Wanted size, for example 500KB or 2MB. Best effort. |