pdf_redact
Permanently redacts sensitive PDF text, regex patterns, or selected bounding areas using blackout boxes with optional overlay text to remove confidential information before sharing.
Instructions
Permanently redacts sensitive text glyphs, patterns, regexes, or specified bounding areas with blackout boxes and optional overlay text. [Input: PDF (.pdf) | Output: PDF (.pdf)]
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": {
"input": "<input>",
"output": "<output>"
},
"name": "pdf_redact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X coordinate. | |
| y | No | Y coordinate. | |
| page | No | Page number to redact (1-based). | |
| input | Yes | Path to the PDF to redact. | |
| query | No | Search keyword or pattern to redact permanently. | |
| regex | No | Regular expression to match and redact. | |
| width | No | Width. | |
| height | No | Height. | |
| output | Yes | Path to save the redacted PDF. | |
| occurrence | No | Occurrence filter: 'all', 'first', 'last', or indices. | |
| overlay_text | No | Optional overlay text (e.g. '[REDACTED]'). |