Get the QR code image
get_qr_imageShow the user their QR code, or hand them a file to save. Returns the PNG inline (plain code, no frame) so it can be displayed in the conversation, plus png_download_url and svg_download_url: signed links that work for 24 hours with no sign-in, so a script, a curl or the user's browser can save the file without a key. The SVG carries the frame, colors and logo and is the one to give a printer. size is the PNG width in px (256-2048). Call this after create_qr_code.
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": {
"id": "<id>"
},
"name": "get_qr_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| encodes | Yes | The exact string inside the code | |
| svg_url | Yes | Print-ready SVG with frame and colors (needs the Authorization header) | |
| manage_url | Yes | ||
| png_download_url | Yes | Plain PNG; no sign-in needed for 24 hours. Fetch this to save the file. | |
| svg_download_url | Yes | Print-ready SVG; no sign-in needed for 24 hours. | |
| download_expires_at | No |