Extract a zip archive
zip_extractCall this tool to unpack an archive; every entry comes back as its own download link valid for one hour. Traversal, absolute-path and symlink entries are refused, a size and ratio cap stops a zip bomb, and dry_run reports exactly what would be written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .zip file | |
| dry_run | No | Report what would be written, byte counts included, and write nothing | |
| out_dir | No | Ignored on this hosted endpoint: there are no directories, and every extracted entry comes back as its own download link valid for one hour | |
| patterns | No | Only entries matching one of these globs (* and ? inside a segment, ** across segments) | |
| max_ratio | No | Refuse an entry whose uncompressed/compressed ratio is above this. Default 100 | |
| overwrite | No | Replace files that already exist in out_dir. Default false: the whole extraction is refused if any would be replaced | |
| skip_unsafe | No | Skip the dangerous entries and extract the rest, naming what was skipped. Default false: one bad entry refuses the whole archive | |
| max_total_mb | No | Refuse if the selected entries declare more than this uncompressed. Default 1024 |