convert_archive
Compress files into archives or decompress and convert between gz, bz2, br, zip, tgz, tar, 7z, and rar formats; optionally list contents or extract to a directory.
Instructions
Compress/decompress archives. Input: gz, bz2, br, zip, tgz/tar.gz, tar.bz2, tar.xz, 7z, rar. Output: gz, br, zip, tgz. Supports listing contents.
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": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>"
},
"name": "convert_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| listOnly | No | Only list archive contents without extracting (optional) | |
| inputPath | Yes | Absolute path to input file or directory | |
| extractDir | No | Directory to extract to (optional) | |
| outputPath | Yes | Absolute path for output archive or extract directory | |
| inputFormat | No | Input format (auto-detected if not provided) | |
| outputFormat | No | Output format (auto-detected if not provided) | |
| compressionLevel | No | Compression level 1-9 (optional, default 6) |