Scan Directory
scan_directoryScan a directory of images and report counts of C2PA Content Credentials by verdict (AI_DECLARED, NO_AI_DECLARED, UNKNOWN) and signer, indicating partial scans when the file count exceeds the limit.
Instructions
Walk a directory of images and report how many carry a C2PA Content Credential, broken down by verdict (AI_DECLARED, NO_AI_DECLARED, UNKNOWN) and by signer. This reproduces the sweep behind this project's own finding that roughly 96.5% of real images carry no credential at all. It reads only file metadata, never pixels, and touches no network. Returns counts and a capped sample of credentialed files, not a full file listing, so a large directory does not flood the response. If the directory has more images than 'limit', the scan is partial and the result says so explicitly rather than silently truncating.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the local directory to scan. | |
| limit | No | Maximum number of image files to scan. If exceeded, the scan is partial and the result says so. | |
| recursive | No | Recurse into subdirectories. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||