Hướng dẫn SDK

Input, Output & Result Handling

Practical patterns for passing files into Zavilo, receiving one or many result files, creating ZIP output, previewing results, and sending them to your own server.

Single File Input

Pass one File object to a Headless Tool.

Multiple File Input

Use files: File[] with merge, batch, and multi-input Tools.

Result Object

Understand files, archive, data, metadata and executionId.

Multiple Result Files

Handle Tools that return multiple output files.

ZIP Results

Request and consume ZIP archives for multi-file output.

Preview & Download

Preview images, PDFs and videos or trigger downloads.

Upload to Your Server

Send one file, many files, or a ZIP to your own backend.

Error Handling

Catch ZaviloError codes and build predictable fallback UI.

Trong quá trình chạy Tool dựa trên trình duyệt thông thường, tệp đầu vào và tệp kết quả không được gửi tới máy chủ Zavilo.