Design a QR code
design_qrDesign a QR code for any content type (link, Wi-Fi, contact, email, SMS, WhatsApp, payments, social profiles and more) with the style you choose: colors and gradients, dot, eye and eye center shapes, a built-in call-to-action frame with its text or a custom frame spec, a border, a logo icon or your own uploaded logo (logo_file_id, with an API key), margin and error correction. Can start from a built-in preset or a community item. Validates the content like the QRdx editor, checks the scan score with the editor's scan check and repairs the style until it is Great (at most 3 repairs, then a classic black-on-white code). Returns the score, what was changed and why, the style JSON (qrdxStyle, ready for save_template and generate_qr_code), a playground_url that opens the design in the QRdx editor, a PNG and the SVG. Call list_options first for the accepted values.
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": {
"content": "<content>"
},
"name": "design_qr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Width of the code in pixels (128-1024); frames add to it | |
| style | No | How the code looks. Leave options out for defaults (or the preset's or community item's): eyes and eye centers follow the dot color, square shapes, margin 4, level Q, no frame. | |
| preset | No | Start from a built-in QRdx theme by id (list_options lists them); style options you set win over it | |
| content | Yes | What the code opens: a type and its fields (list_options lists the fields of every type) | |
| include_svg | No | Return the SVG markup (often 50-150 KB) | |
| logo_file_id | No | Your own logo: an image you uploaded to QRdx (PNG or JPEG, up to 1 MB), by file id. Needs the workspace's API key on this connection (Authorization: Bearer qrdx_…). | |
| community_item | No | Start from a community theme or frame by id, such as frame:wifi-card (search_community finds them); style options you set win over it |