qr_decode
Decode one or more QR/2D codes from an image, recover damaged or low-resolution codes, and return text, symbology, confidence, and payload risk flags.
Instructions
Decode one or more QR/2D codes from an image. Tries zxing-cpp (multiple binarizers), OpenCV, ZBar and preprocessing variants; if all fail it automatically falls back to qr_repair for glare/blur/low-resolution damage. Returns text, symbology, EC level, corner points, confidence and a parsed payload with URL risk flags.
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": {
"image": "<image>"
},
"name": "qr_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Local path, base64, data URI or http(s) URL | |
| repair | No | Try damaged-code recovery when normal decoding fails | |
| formats | No | Symbologies to try, e.g. ["QRCode","DataMatrix"] | |
| budget_ms | No | Time budget in milliseconds | |
| max_variants | No | Max preprocessing variants | |
| include_parse | No | Attach semantic/risk analysis to each result |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||