qr_generate
Generate a PNG QR code for any payload, such as a Bitcoin, Liquid, or Lightning address, invoice, or URI, and return its file path. Optionally include terminal-friendly block art.
Instructions
Generate a PNG QR code for arbitrary content and return qr_code_path. Optionally includes a terminal-friendly block QR string.
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": {
"data": "<data>"
},
"name": "qr_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Content to encode (address, invoice, URI, or other QR payload). | |
| filename | No | Optional PNG filename; defaults to qr_<sha256[:16]>.png. | |
| terminal | No | Also return terminal_qr block art. | |
| output_dir | No | Optional directory for the PNG; defaults to ~/.aqua/qr. |