qr_code
Encode any text or URL into a QR code and return a base64 PNG data URL for embedding, sharing, or display.
Instructions
Generate a QR code for any text or URL. Returns a base64 PNG data URL.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "qr_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Size in pixels | |
| text | Yes | Text or URL to encode | |
| error_level | No | Error correction: L, M, Q, H | M |