빠른 시작
SDK 로드, Public Key 인증, 실행 모드 선택과 Tool 호출까지 기본 연동 구조를 확인합니다.
1. SDK
<script src="https://sdk.zavilo.app/v1/zavilo.js"></script>
2. 초기화
const client = await Zavilo.init({ publicKey: "pk_live_xxxxx" });3. Tool 실행
const result = await client.run("resize-image", {
file,
options: { width: 1200, keepAspectRatio: true, format: "webp", quality: 0.9 }
});
const outputFile = result.files[0];4. Tool 조회
client.listTools();
client.describe("resize-image");