get_qr_image
Generate a QR code image (SVG or PNG) for a shortlink. The QR encodes the urlinks.me redirect URL (NOT the bare destination) so scans count as clicks: my/foo → urlinks.me/{alias}/foo, yt/foo → urlinks.me/yt/foo. Personal (my/) shortlinks therefore require the user to have an alias set — call get_alias to check, create_alias to set one. Renders the link's saved QR Studio styling (dot/corner shapes, colors, gradient, logo) with the same engine as the dashboard, so the image is identical to what QR Studio shows. Override colors with fg/bg if needed.
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": {
"shortlink": "<shortlink>"
},
"name": "get_qr_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | No | Background color as hex (overrides saved config) | |
| ec | No | Error correction level (default: M) | |
| fg | No | Foreground color as hex (overrides saved config) | |
| size | No | Box size in pixels per module (1-40, default: 10) | |
| format | No | Image format (default: svg) | |
| shortlink | Yes | The shortlink to generate a QR code for (e.g., 'my/docs') |