pptx_compress_size
Compress a .pptx to a size you need, for example under 10 MB. Tries the sharpest picture setting first and returns the sharpest result that fits targetSize with targetMet: true; if it cannot fit you get the smallest file with targetMet: false. A deck already under the target comes back unchanged. Text, charts, animations and media stay as they are. Returns the .pptx as base64 plus originalBytes, outputBytes and reductionPercent.
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>",
"targetSize": "<targetSize>"
},
"name": "pptx_compress_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDpi | No | Never keep pictures sharper than this many dpi (48 to 300), on top of the level. | |
| fileBase64 | Yes | The presentation (.pptx), base64 encoded. Up to 50 MB and 500 slides. Old .ppt files and password-protected files are not supported. | |
| targetSize | Yes | The size to reach: a number of bytes, or text such as 10MB or 800KB (at least 1 KB) | |
| removeNotes | No | Also remove speaker notes first. Default false. | |
| removeThumbnail | No | Remove the stored preview picture. Default true; send false to keep it. | |
| removeUnusedLayouts | No | Remove slide layouts no slide uses, and the pictures only they carry. Default true; send false to keep them. |