Remove metadata from files
clean_filesRemove hidden GPS, EXIF, C2PA credentials and AI prompts from photos, videos, PDFs and RAW files locally, saving clean copies while leaving the originals unchanged.
Instructions
Removes hidden metadata from photos (JPG, PNG, WebP, AVIF, HEIC), videos (MP4, MOV), PDFs and camera RAW files (CR2, CR3, NEF, ARW, DNG, RAF, RW2, ORF, PEF): GPS location, camera and serial numbers, owner and author names, dates, XMP/IPTC, C2PA Content Credentials and AI prompts. Works on files or folders on this computer. Originals are not changed: a clean copy is saved as name-clean.ext unless in_place is true. Runs locally; nothing is uploaded.
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": {
"paths": "<paths>"
},
"name": "clean_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Images: all = remove everything (default); ai = only AI tags, C2PA and prompts, keep camera data; gps = only location; c2pa = only Content Credentials. Videos support all and gps. | |
| paths | Yes | Absolute paths of files or folders to clean | |
| in_place | No | Overwrite the originals. Only use when the user explicitly asks for it. | |
| recursive | No | Include sub-folders when a folder is given. | |
| keep_dates | No | RAW files: keep the capture date. | |
| output_dir | No | Folder to save clean copies in. Default: next to each original. |