Entwickler-Tools
Archive Tool
archive-tool
Use Archive Tool through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Schnellzugriff
Eingabedateien 1–100Ausgabedateien 1–100
Eingabe
Zulässige Eingabeformate und Dateianzahl für dieses Tool.
| Eingabetyp | file |
|---|---|
| Dateianzahl | 1 – 100 |
| Zulässige MIME-Typen | */* |
Parameter
Diese Werte über request.options übergeben.
| Parameter | Typ | Erforderlich | Standard | Zulässig / Bereich | Beschreibung |
|---|---|---|---|---|---|
action |
enum | Optional | create |
create | extract | Create or extract ZIP. |
Ausgabe
Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.
| Typ | files+data |
|---|---|
| Dateianzahl | 1 – 100 |
| Ausgabe-MIME | application/zip, application/octet-stream |
| Metadata | count, action |
| ZIP-Archiv | Nicht unterstützt |
Grundlegende Verwendung
Unterstützten Integrationsmodus wählen und den erzeugten Starter-Code kopieren.
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.