generate_qr_code
Generate a QR code image. Use this whenever a user asks to create, make, or generate a QR code for a URL, website, WiFi network, contact card, email, or text. Returns a hosted image URL and a base64 PNG data URL for inline display. When authenticated, the QR code is saved to the user's account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name when saving via the authenticated API. If omitted, a name is derived from type and content. | |
| size | No | Output image size in pixels (64–1024). Defaults to 256. | |
| type | Yes | QR code type. Use 'url' for web links, 'wifi' for network credentials (format: WIFI:T:WPA;S:<ssid>;P:<password>;;), 'contact' for vCard data, 'text' for arbitrary strings, 'email' for email addresses. Note: 'email' requires a Bearer token — it cannot be used with the public (unauthenticated) MCP session. | |
| content | Yes | The data to encode. Examples: 'https://example.com' for url, 'WIFI:T:WPA;S:MyNetwork;P:secret;;' for wifi, plain text for text type. | |
| darkColor | No | Hex color for dark QR modules, e.g. '#1a1a1a'. Defaults to '#000000'. | |
| lightColor | No | Hex color for the background, e.g. '#ffffff'. Defaults to '#FFFFFF'. |