Update document metadata
update_metadataUpdate existing PDF metadata (title, author, subject, keywords) via incremental revision, keeping XMP synchronized and refreshing ModDate. Preserves prior revisions and signatures.
Instructions
Rewrite /Info (title, author, subject, keywords) of an EXISTING PDF as an incremental update; XMP stays in sync on PDF/A documents; /ModDate is refreshed (pin modDate for reproducible bytes on the same host TZ). Earlier revisions and signatures stay byte-identical — the new revision is unsigned (sign_pdf / timestamp_pdf again if needed). Encrypted sources → ENCRYPTED_SOURCE. For metadata at generation time use the metadata option of the document tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | New /Info /Title (mirrored to XMP dc:title when the document carries XMP). | |
| author | No | New /Info /Author (XMP dc:creator). | |
| modDate | No | ISO-8601 modification instant for /ModDate and xmp:ModifyDate. Defaults to now; pin it for reproducible output. | |
| subject | No | New /Info /Subject (XMP dc:description). | |
| keywords | No | New /Info /Keywords (XMP pdf:Keywords). | |
| pdfBase64 | Yes | Base64-encoded PDF to update (unencrypted). | |
| outputMode | No | 'base64' (default) returns the PDF inline; 'file' writes it inside the PDFNATIVE_MCP_OUTPUT_DIR sandbox (SECURITY_VIOLATION when the sandbox is not configured). | base64 |
| outputPath | No | Relative path inside PDFNATIVE_MCP_OUTPUT_DIR (required when outputMode='file'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| summary | No | Tool-specific summary, when produced. | |
| filePath | No | Sandboxed absolute path (file mode). | |
| sizeBytes | Yes | ||
| diagnostics | No | PDF/A diagnostics (when includeDiagnostics=true). |