archive_info
Summarize an archive without extracting it to report format, entry counts, sizes, encryption, suspicious paths, nested archives, and whether safe extraction is possible.
Instructions
Summarize an archive without extracting anything. Call this first.
Reports format (zip, tar, tar.gz/bz2/xz, gz/bz2/xz), entry counts by kind, compressed and uncompressed totals and ratio, encryption, zip comment, top-level layout, nested archives (reported only), suspicious entries (path traversal, absolute paths, links that escape, device files, duplicates, Windows-reserved names) and an "Extraction verdict" saying whether extract_archive would accept it.
password: only for ZipCrypto zips (standard-library limit; AES zips are unsupported). encoding: re-decode legacy zip names that are not flagged UTF-8, e.g. cp857 or cp1254 for Turkish, cp932 Japanese, gbk Chinese, cp1251 Russian (default cp437, as zip specifies).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| encoding | No | ||
| password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |