compress_tool
Compress or extract files and directories in formats like zip, tar, and tar.gz. Specify source and destination paths to manage file storage efficiently.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | Action type: compress or extract | |
destinationPath | Yes | Absolute path to destination file/directory | |
format | Yes | Compression format: zip, tar, tar.gz | |
sourcePath | Yes | Absolute path to source file/directory |
Input Schema (JSON Schema)
{
"description": "Compress/extract files (zip, tar, tar.gz)",
"name": "compress_tool",
"properties": {
"action": {
"description": "Action type: compress or extract",
"enum": [
"compress",
"extract"
],
"type": "string"
},
"destinationPath": {
"description": "Absolute path to destination file/directory",
"type": "string"
},
"format": {
"description": "Compression format: zip, tar, tar.gz",
"enum": [
"zip",
"tar",
"tar.gz"
],
"type": "string"
},
"sourcePath": {
"description": "Absolute path to source file/directory",
"type": "string"
}
},
"required": [
"action",
"sourcePath",
"destinationPath",
"format"
],
"type": "object"
}