generate_qr_code
Generate a QR code image URL for any URL or WhatsApp link. Specify a phone number and optional message for WhatsApp QR codes.
Instructions
Generate a QR code for a URL or WhatsApp link. Returns a URL to the QR code image that can be opened in a browser or downloaded.
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 |
|---|---|---|---|
| url | No | Direct URL to encode in the QR code (e.g., https://example.com) | |
| phone | No | WhatsApp phone number with country code, no + sign (e.g., 16506053956). Used if url is not provided. | |
| message | No | Pre-filled WhatsApp message text. Used with phone parameter. | |
| size | No | QR code size in pixels (100-1000, default 300) |