Read file metadata
read_metadataReads embedded EXIF, XMP, document properties, and tags from a file or folder's supported files to inspect what photos, documents, or media reveal.
Instructions
Read the embedded metadata (EXIF, XMP, document properties, tags) of a file or a folder's supported files. Use when: checking what a photo, document or media file reveals. Instead: export_metadata for one JSON/CSV text; strip_metadata (needs --mcp-write) for cleaned copies. Requires: --mcp-tools metadata. Behavior: read-only. Images, Office, PDF, audio/video (ffprobe, off in paranoid mode). A folder's unsupported and secret files are left out; a file given directly that cannot be read is a report with error. Values are cut at 512 characters. Time limit: 5 min. Returns: {path, is_dir, truncated, files: [{path, name, kind (null: unsupported), size, error ('' when read), truncated, removable_count, fields: [{group, name, value, removable}]}]}.
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": "read_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | A file, or a folder whose supported files are read (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 |
|---|---|---|---|
| path | Yes | ||
| files | Yes | ||
| is_dir | Yes | ||
| truncated | Yes |