Strip metadata into copies
strip_metadataCreate cleaned copies of files with camera, GPS, or author metadata removed, leaving originals untouched—ideal for safe sharing.
Instructions
Strip the metadata of a file, or a folder's supported files, into cleaned copies next to the originals. Use when: sharing a file without its camera, GPS or author data; look with read_metadata first. Instead: export_metadata to keep the metadata as a record. Requires: --mcp-tools metadata; PDF needs pypdf; audio/video ffmpeg, off in paranoid mode. Behavior: only adds; originals stay ('photo.jpg' -> 'photo.clean.jpg', then 'photo.clean (1).jpg'); a repeat writes another copy. Secret files are left out. Time limit: 30 min. Returns: {path, mode (always 'copy'), truncated, results: [{path, status, output (the copy), removed (fields), sha256, error, note}]}; status: cleaned, unchanged (no copy), unsupported, skipped (read-only folder) or error.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "strip_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | A file, or a folder whose supported files are cleaned (absolute, or relative to the MCP root). Required unless path_b64 is given. | |
| backend | No | Backend id from list_backends; omit for the default. | |
| path_b64 | No | path as base64 of its raw bytes, for non-UTF-8 names; replaces path. | |
| max_files | No | For a folder: take at most this many files; more sets truncated=true. Ignored for a file. | |
| recursive | No | For a folder: also take the files in its subfolders (false: the folder's own files only). Ignored for a file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| path | Yes | ||
| results | Yes | ||
| truncated | Yes |