QR code
get_qrUse when an agent needs a QR code for a link, address or payment string. Returns an SVG or PNG (base64 and data URI) at error-correction level M, scaled for scanning. Input up to 2 KB; over that is a 400, never billed. Costs 0.005 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).
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": "get_qr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the text to encode, up to 2,048 bytes | |
| format | No | svg (default) or png |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the get_qr payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_qr | |
| tool | Yes | the tool that produced this payload |