qr_encode
Generate a QR code for text/URL as SVG (+data URI) or a 0/1 module matrix; EC level L/M/Q/H. Paid: $0.02 USDC via x402.
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_encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | No | hex color | |
| fg | No | hex color | |
| ecl | No | L|M|Q|H (default M) | |
| text | Yes | text or URL to encode | |
| scale | No | px per module 1-40 | |
| border | No | quiet zone modules 0-20 | |
| matrix | No | true to include matrix |