List archive members
list_archive_membersList archive members and their uncompressed sizes on local disk without extracting, so you can inspect contents before unpacking.
Instructions
List the members of an archive on the local disk without extracting. Use when: checking contents or unpacked size before extract_archive. Instead: extract_archive (needs --mcp-write) to unpack. A remote archive: copy_path_to_backend (needs --mcp-tools transfer and --mcp-write) first. Requires: --mcp-tools archive. Behavior: read-only, local disk only. Unknown or damaged files fail; an encrypted 7z or ZIP needs password; 7z needs py7zr, rar rarfile. Refuses secret files. Time limit: 60 s. Returns: {path, total, truncated, entries: [{name, size, compressed, mtime (Unix seconds), modified (ISO 8601), is_dir}]}.
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": "list_archive_members"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The archive on the local disk (absolute, or relative to the MCP root): zip family, tar.*, 7z, rar, gz, bz2, xz or zst. Required unless path_b64 is given. | |
| password | No | The password of an encrypted 7z or ZIP (e.g. one create_archive made with a password). Without it such an archive fails with 'the archive is encrypted with a password'; a wrong one fails too. Never logged or returned. | |
| path_b64 | No | path as base64 of its raw bytes, for non-UTF-8 names; replaces path. | |
| max_entries | No | Return at most this many members; total still counts all, truncated tells when some were left out. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| total | Yes | ||
| entries | Yes | ||
| truncated | Yes |