Redact a PDF (true removal)
pdf_redactPermanently redact a PDF: remove the given text occurrences (terms) or rectangular areas (page, x, y, width, height in PDF points) by deleting them from the content stream, then verify no residue remains. Unlike overlay boxes, this is irreversible removal. Use this when the user asks to redact or scrub sensitive content from a document.
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_redact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Base64-encoded file bytes (no data: URL prefix). | |
| areas | No | Rectangles to remove (PDF coordinate space). | |
| terms | No | Text occurrences to remove. |