Ferramentas QR
QR Code Generator
qr-code-generator
Use QR Code Generator through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Ações rápidas
Arquivos de entrada 0Arquivos de saída 1–2
Entrada
Formatos de entrada e quantidade de arquivos aceitos por esta Tool.
| Tipo de entrada | data |
|---|---|
| N.º de arquivos | 0 – 0 |
| MIME aceitos | Nenhum |
Parâmetros
Passe estes valores por request.options.
| Parâmetro | Tipo | Obrigatório | Padrão | Valores / Faixa | Descrição |
|---|---|---|---|---|---|
content |
string | Obrigatório | — | — | URL, text, phone number or other QR content. |
size |
integer | Opcional | 512 |
96 – 4096 | Output QR width and height in pixels. |
ecc |
enum | Opcional | M |
L | M | Q | H | QR error correction level. A center logo forces H. |
foreground |
string | Opcional | #000000 |
— | QR foreground color as #RRGGBB. |
background |
string | Opcional | #ffffff |
— | QR background color as #RRGGBB. |
format |
enum | Opcional | png |
png | svg | both | Output PNG, SVG or both files. |
Saída
Formato do resultado retornado após o processamento.
| Tipo | files |
|---|---|
| N.º de arquivos | 1 – 2 |
| MIME de saída | image/png, image/svg+xml |
| Metadata | size, ecc, moduleCount, hasLogo, outputBytes |
| Arquivo ZIP | Não suportado |
Uso básico
Escolha um modo suportado e copie o código inicial gerado.
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.