pdf_redact
Permanently redact areas of a PDF. Boxes are fractions (0 to 1) of the page as displayed, measured from the top-left corner, pages numbered from 0. Text characters, picture pixels, vector art and annotations under a box are removed from the file itself and an opaque black bar is drawn; everything outside the boxes stays real, selectable text in its original fonts. A page that cannot be edited exactly (for example a curved drawing partly under a box) is turned into a picture with the boxes painted black instead. Pages without boxes are not touched
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>",
"boxes": "<boxes>"
},
"name": "pdf_redact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boxes | Yes | Page index (as a string key, 0-based) -> array of boxes to redact, each in fractional page coordinates (0-1) | |
| fileBase64 | Yes | The PDF file, base64-encoded |