qr_generate
Generate QR codes from text with configurable error correction, colors, size, quiet zone, and PNG/SVG/ASCII output, optionally saving files to a sandbox directory.
Instructions
Generate a QR code. Supports error-correction level, fixed version/mask, scale, quiet zone, colors and PNG/SVG/ASCII output. Optionally saves to the sandbox output directory.
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": {
"text": "<text>"
},
"name": "qr_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dark | No | Dark module color (#RRGGBB or a CSS name) | #000000 |
| mask | No | Force mask pattern 0-7, or auto | |
| save | No | Write the file to disk | |
| text | Yes | Content to encode | |
| error | No | Error correction level | M |
| light | No | Light module color; null means transparent | #FFFFFF |
| scale | No | Pixels per module | |
| border | No | Quiet-zone width in modules | |
| format | No | Output format | png |
| output | No | File name inside QRMCP_OUTPUT_DIR (relative only) | |
| version | No | Force QR version 1-40, or auto | |
| include_base64 | No | Include a PNG data URI in the result |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||