# redact_pdf: Redact PDF

Remove text for real, not just cover it: name the exact text to remove, or describe it ("all names, emails and account numbers") and FynePDF finds it. The result is checked: if any of the text can still be found, nothing is returned. The original file is kept.

A tool of the [FynePDF MCP server](https://fynepdf.com/developers/docs/mcp) (`https://api.fynepdf.com/mcp`). Removes content for good (the original file is kept); assistants ask before running it.

## Ask for it

- "Redact every name and phone number."
- "Black out the account numbers for real."

## Inputs

| Input | Type | Required | What it does |
|---|---|---|---|
| `file_id` | string |  | A FynePDF file_id from upload_file, import_file_from_url or an earlier tool. |
| `file` | object |  | A file the person attached in ChatGPT (filled in by ChatGPT). |
| `file_url` | string |  | A public link to the file. |
| `library_file_id` | string |  | A file from the person's FynePDF Library (from list_library_files). |
| `text` | array of string |  |  |
| `find` | string |  | What to remove, in words (uses AI to find it). |
| `match_case` | boolean |  |  |
| `remove_metadata` | boolean |  |  |

## The same over HTTP

From your own code, call [Redact PDF API](https://fynepdf.com/developers/docs/api/redact), [Find what to redact](https://fynepdf.com/developers/docs/api/find-redactions).

## Connect it

[Claude](https://fynepdf.com/developers/docs/mcp/claude) · [ChatGPT](https://fynepdf.com/developers/docs/mcp/chatgpt) · [Cursor](https://fynepdf.com/developers/docs/mcp/cursor) · [VS Code](https://fynepdf.com/developers/docs/mcp/vscode) · [Claude Code](https://fynepdf.com/developers/docs/mcp/claude-code)


---

Open this page in a browser: https://fynepdf.com/developers/docs/mcp/tools/redact_pdf

More: [All tools](https://fynepdf.com/tools) · [AI agents](https://fynepdf.com/ai/agents) · [llms.txt](https://fynepdf.com/llms.txt) · [Sitemap](https://fynepdf.com/sitemap.xml)
