file_unzip
Extract a stored .zip archive into a server-side destination directory with zip-slip protection, returning the number of files written.
Instructions
Extract a .zip already in storage into dest_dir ON THE SERVER (zip-slip protected; every entry stays within your confinement root). Returns the number of files written. Extracting into an end-to-end encrypted folder is refused with E2E_PLAINTEXT_REFUSED unless allow_plaintext is set.
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": {
"src": "<src>",
"dest_dir": "<dest_dir>"
},
"name": "file_unzip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| src | Yes | adapter:// path of the .zip to extract | |
| dest_dir | Yes | adapter:// directory to extract into (same storage as src) | |
| allow_plaintext | No | only when files would land inside an end-to-end encrypted folder: extract them there UNENCRYPTED on purpose |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refused | No | ||
| skipped | No | ||
| extracted | Yes | ||
| skipped_more | No |