close_pdf
Release system resources by closing a loaded PDF file after completing redaction operations, freeing memory and preventing file lock issues.
Instructions
Close a loaded PDF and free its resources.
Args: pdf_path: Path to the PDF file to close ctx: MCP context for logging
Returns: Confirmation message
Raises: ToolError: If the PDF is not loaded
Input Schema
Name | Required | Description | Default |
---|---|---|---|
pdf_path | Yes | Path to the PDF file to close |
Input Schema (JSON Schema)
{
"properties": {
"pdf_path": {
"description": "Path to the PDF file to close",
"type": "string"
}
},
"required": [
"pdf_path"
],
"type": "object"
}