Generate a QR code
generate_qr_codeBuild a static QR code for text, a URL, Wi-Fi, or a vCard. Returns the payload, an SVG string, and a PNG as base64.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_qr_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ecc | No | M | |
| url | No | ||
| dark | No | #111111 | |
| size | No | ||
| text | No | ||
| type | No | url | |
| wifi | No | ||
| light | No | #ffffff | |
| vcard | No | ||
| margin | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | ||
| payload | Yes | ||
| pngBase64 | Yes |