Tất cả Tool›Tạo mã QR
Công cụ QR

Tạo mã QR

qr-code-generator

Use QR Code Generator through the Zavilo SDK. Check input limits, parameters, output and supported modes below.

H · HeadlessE · Embedded
Tool IDqr-code-generator
Version1
ExecutionCLIENT
WorkloadSTANDARD
ModesHeadless, Embedded

Quick actions

Input files 0Output files 1–2

Đầu vào

Accepted input contract for this Tool.

Kinddata
File count0 – 0
Accepted MIME typesKhông có

Tham số

Pass these values through request.options.

Parameter Type Bắt buộc Mặc định Giá trị / Phạm vi Mô tả
content string Required — — URL, text, phone number or other QR content.
size integer Optional 512 96 – 4096 Output QR width and height in pixels.
ecc enum Optional M L | M | Q | H QR error correction level. A center logo forces H.
foreground string Optional #000000 — QR foreground color as #RRGGBB.
background string Optional #ffffff — QR background color as #RRGGBB.
format enum Optional png png | svg | both Output PNG, SVG or both files.

Đầu ra

Result contract returned after successful processing.

Typefiles
File count1 – 2
MIME typesimage/png, image/svg+xml
Metadatasize, ecc, moduleCount, hasLogo, outputBytes
ZIP archiveNo

Ví dụ cơ bản

Choose a supported integration mode and copy the generated starter code.

Headless

const result = await client.run("qr-code-generator", {
  
  options: { content: "value", size: 512, ecc: "M", foreground: "#000000" }
});
console.log(result.files, result.data, result.metadata);

Embedded

await client.mount({ tool: "qr-code-generator", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.