Get the picture of a code
get_pictureThe QR picture of a code, as PNG (returned as an image) or SVG (returned as text). It holds the short address and nothing else, so it stays valid when the code is changed.
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": {
"code": "<code>"
},
"name": "get_picture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The 7 characters at the end of the code's short address, the part after the last slash. | |
| dark | No | Color of the dark modules as six hex digits. It has to be much darker than light: a pair a phone cannot tell apart is refused. | 000000 |
| size | No | Largest width in pixels (PNG only; an SVG has no pixel size). Each module is a whole number of pixels, so the picture can come out a little smaller. | |
| level | No | Error correction. Higher survives more damage and makes a denser picture. | M |
| light | No | Color of the background as six hex digits. | ffffff |
| shape | No | Square modules, or round dots with rounded corner marks. | square |
| format | No | png for a picture with a pixel size, svg for one that stays sharp at any print size. | png |
| margin | No | Quiet border in modules. Scanners expect 4. |