Make QR
make_qrMake a PNG QR code for an invoice, URL, or text. Put the QR URL in your own message.
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": "make_qr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ecc | No | Error correction: L, M, Q, or H. | M |
| data | Yes | Text, URL or Lightning invoice. (minimum length 1, maximum length 2048). | |
| size | No | PNG width in pixels. (minimum 64, maximum 1024, default 256). | |
| max_sats | No | Most this call may charge. Minimum 1. A higher total charges nothing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | approval_required, limit_exceeded, or insufficient_balance when the call stopped. | |
| which | No | Which limit: per_call, per_day, per_session, per_hour_buys, per_minute_calls, or per_minute_sats. | |
| content | No | Delivered text. Empty when the call did not deliver. | |
| message | No | ||
| order_id | No | Order id after a charge. Null when nothing was charged. | |
| truncated | No | True when the source was longer than content, or the page itself was cut. | |
| total_cost | No | All-in price string. | |
| approval_url | No | Page where the person approves this exact price. | |
| balance_sats | No | Credit balance after the call, or null when it was not read. | |
| sats_charged | No | Sats charged for this call. 0 when nothing was charged. | |
| total_length | No | Characters before truncation. Larger than content_length when truncated is true. | |
| content_length | No | Characters in content. |