Mark one file as AI-generated and verify the mark
mark_art50_provenanceMark local AI-generated or manipulated files with verifiable EU AI Act Art.50 provenance metadata: embed XMP in JPEG/PNG or write a SHA-256-bound sidecar for other formats.
Instructions
Mark ONE existing local regular file as artificially generated or manipulated content per EU AI Act Art.50(2) and verify the result. JPEG and PNG files get an embedded, idempotent XMP packet (IPTC DigitalSourceType = http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia) written to a new output file; re-marking replaces the packet instead of duplicating it. Any other file (text, audio, video, PDF, ...) gets a SHA-256-bound .art50.json sidecar written beside the source; changing one byte invalidates it. Reads and writes local files only and performs no network access. Remote URLs, directories, files over 50 MiB, unsafe generator labels and writes over the source are rejected. Returns the marking kind, output path, source and output SHA-256 hashes, source byte count and a verification boolean as both text and structuredContent.
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": {
"path": "<path>"
},
"name": "mark_art50_provenance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to an existing local regular file to mark. Must be a local filesystem path; http://, https://, ftp://, file://, s3:// and gcs:// URLs are rejected. Maximum 50 MiB. | |
| generator | No | Optional generator label embedded in the XMP packet's xmp:CreatorTool attribute, for example 'my-pipeline/2.3'. Defaults to 'ai50-mcp/1.0.0'. Only ASCII letters, digits, space and . _ - / + @ are accepted so the XMP stays well-formed XML. | |
| output_path | No | Optional destination path for the marked JPEG/PNG copy. Its parent directory must already exist, it must not be a directory, and it must not resolve to the source file. Ignored for sidecar marking (the .art50.json sidecar is always written next to the source). If omitted, a sibling named <stem>.marked<suffix> is created. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the marking operation completed. | |
| kind | Yes | Which marking method was applied. | |
| bytes | Yes | Size of the source file in bytes. | |
| output | Yes | Resolved absolute path of the marked copy or sidecar. | |
| source | Yes | Resolved absolute path of the source file. | |
| verified | Yes | True when the written mark read back correctly. | |
| output_sha256 | Yes | SHA-256 of the written output, lowercase hex. | |
| source_sha256 | Yes | SHA-256 of the source file, lowercase hex. |