Abilities

Generate QR Code SVG

lh-qr-codes/generate-qr-svg Read-only Idempotent

Generates a QR code and returns the raw SVG markup. Use this to inline SVG directly in HTML artifacts or documents without needing an external HTTP request. Requires install_plugins.

ParameterTypeRequiredDefaultDescription
textstringYesThe text or URL to encode.
eccstringNoError correction level: L, M, Q, H. Default: L. One of: L, M, Q, H.

Get QR Code URL

lh-qr-codes/get-qr-url Read-only Idempotent

Returns the URL to a QR code image for any text or URL. The returned URL can be embedded in an img tag, fetched as an SVG artifact, or passed to other tools. Requires install_plugins.

ParameterTypeRequiredDefaultDescription
textstringYesThe text or URL to encode. Can be any string: URL, email, phone, vCard, plain text etc.
formatstringNoOutput format: svg or png. Default: svg. Use svg for artifacts, png for embedding in pages. One of: svg, png.
eccstringNoError correction level: L (7%), M (15%), Q (25%), H (30%). Higher levels produce denser codes but survive more damage. Default: L. One of: L, M, Q, H.
sizeintegerNoPNG scale factor (1-20). Controls output image size. Default: 10 (approx 210px). Only applies to png format.