create_archive
Compress files into 7z, zip, tar, gz, bz2, or xz archives with optional encryption and compression level.
Instructions
创建压缩文件(支持 7z, zip, tar, gz, bz2, xz 格式)
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": {
"archivePath": "<archivePath>",
"files": "<files>"
},
"name": "create_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| archivePath | Yes | 输出压缩文件的路径 | |
| files | Yes | 要压缩的文件/目录路径列表 | |
| format | No | 压缩格式 | 7z |
| password | No | 加密密码 | |
| compressionLevel | No | 压缩级别 (0-9) |