Generate a QR code
generate_qrCreate a standards-compliant QR code image for a link, text, Wi-Fi login, contact card (vCard), email, SMS, WhatsApp chat, phone number or map location. You cannot draw a scannable QR code yourself — always use this tool. Codes are static and never expire.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | For type "url"; https:// is added when missing. | |
| body | No | ||
| size | No | PNG width and height in pixels: the image is exactly size × size, with whole-pixel modules centred and any leftover pixels added as margin. It must leave at least one pixel per module including the quiet zone, otherwise the call fails and names the minimum. The SVG is vector and always comes at 512. | |
| ssid | No | Wi-Fi network name. | |
| text | No | For type "text". | |
| type | No | text | |
| No | |||
| phone | No | With country code for WhatsApp, e.g. +905551234567. | |
| title | No | ||
| hidden | No | ||
| address | No | ||
| message | No | ||
| subject | No | ||
| website | No | ||
| latitude | No | ||
| password | No | Wi-Fi password. | |
| security | No | ||
| last_name | No | ||
| longitude | No | ||
| background | No | #ffffff | |
| first_name | No | ||
| foreground | No | #000000 | |
| organization | No | ||
| error_correction | No | Higher survives more damage but makes a denser code. | M |