generateQRCode
Generates a QR Code image for the specified data.
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": {
"data": "<data>",
"format": "<format>"
},
"name": "generateQRCode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Data to encode in the QR code. | |
| size | No | Size of the QR code image to generate. The output will be a square image with (size x size) dimensions. The default size is 250. | |
| format | Yes | Image format to return. Must be one of the following: png, jpg, jpeg, eps, svg. | |
| bg_color | No | Background color of the QR code. Must be a 6-digit hex color (e.g. 00ff00 for green). Default is ffffff (white). | ffffff |
| fg_color | No | Foreground color of the QR code. Must be a 6-digit hex color (e.g. 00ff00 for green). Default is 000000 (black). | 000000 |