redact_image_area covers a rectangle with a solid-colour box, permanently hiding whatever is underneath — a face, a signature, a stamp, a region of a scan. Coordinates are in pixels from the top-left of the page. Example prompt: “Cover the signature block at the bottom of page 2”.
Tool description (as the AI agent sees it):
Covers a rectangular area of a document page with a solid-color box, permanently hiding image content (e.g. faces, signatures, stamps). Coordinates are in pixels from the top-left corner of the page. Call this tool whenever the user asks to hide, cover, or black out an image area or region in a document. Do NOT pre-check whether files exist — just pass the filename the user provided. The tool resolves files from storage and returns an error with available files if a name is not found. On failure, the response text starts with ‘Image area redaction failed for’ followed by the underlying exception type, message, and inner-exception chain.
This is the tool for content that has no text layer. Getting the coordinates right is the practical difficulty: use get_document_info for the page dimensions, and check the result visually before relying on it — a box that is 20 pixels too small is a redaction that failed.
On failure the text starts with Image area redaction failed for, followed by the exception type and message.
Example prompts
“Cover the signature block at the bottom of page 2.”
“Black out the photo in the top-right corner.”
“Hide the stamp area on the first page.”
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.