Modos del SDK
Tool Definition의 modes에 표시된 방식만 사용할 수 있습니다.
Headless
const result = await client.run("jpg-to-webp", { file, options:{ quality:0.9 } });Interactive
await client.open({
tool: "document-scanner",
input: { file },
onComplete(result) { console.log(result.files); }
});Embedded
await client.mount({
tool: "pdf-editor",
target: "#zavilo-tool",
mode: "embedded"
});