Công cụ lập trình
Archive Tool
archive-tool
Use Archive Tool through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Quick actions
Input files 1–100Output files 1–100
Đầu vào
Accepted input contract for this Tool.
| Kind | file |
|---|---|
| File count | 1 – 100 |
| Accepted MIME types | */* |
Tham số
Pass these values through request.options.
| Parameter | Type | Bắt buộc | Mặc định | Giá trị / Phạm vi | Mô tả |
|---|---|---|---|---|---|
action |
enum | Optional | create |
create | extract | Create or extract ZIP. |
Đầu ra
Result contract returned after successful processing.
| Type | files+data |
|---|---|
| File count | 1 – 100 |
| MIME types | application/zip, application/octet-stream |
| Metadata | count, action |
| ZIP archive | No |
Ví dụ cơ bản
Choose a supported integration mode and copy the generated starter code.
Headless
const result = await client.run("archive-tool", {
files: selectedFiles,
options: { action: "create" }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "archive-tool", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.