qr_open
Validate a QR-code URL, show risk flags, and open it in the system browser only after confirmation, blocking unsafe schemes, private hosts, and non-allowlisted hosts.
Instructions
Validate and optionally open a QR-code URL in the system browser. IMPORTANT: show the URL and its risk flags to the user before calling with confirm=true. Without confirm=true this tool only validates and reports; it never opens anything. Blocks file/javascript/data schemes, private/loopback hosts (SSRF) and hosts outside QRMCP_URL_ALLOWLIST.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "qr_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to open. Omit when using image=. | |
| image | No | Decode this image and open its first URL instead | |
| confirm | No | Must be true to actually launch the browser | |
| dry_run | No | Validate only, never open even if confirm=true | |
| new_tab | No | Open in a new tab when supported | |
| allowlist | No | Override QRMCP_URL_ALLOWLIST for this call | |
| allow_private | No | Allow hosts resolving to private/loopback IPs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||