Tool tree
Free browser-based QR code generator, barcode maker and scanner. Create styled QR codes, Code 128, EAN, Data Matrix, Aztec, PDF417 and more without uploading your data.
Implementation
gradeNot graded
gradeNot graded
read_code_stateAnswer
Read the current QR, barcode and latest scanner state without changing the Codebench UI.
View tool JSON
{
"name": "read_code_state",
"kind": "answer",
"impl": "imperative",
"description": "Read the current QR, barcode and latest scanner state without changing the Codebench UI.",
"inputSchema": {
"type": "object",
"properties": {
"includePayload": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
}set_qr_codeAction
Fill a QR template and optionally adjust basic styling through the visible Codebench UI.
View tool JSON
{
"name": "set_qr_code",
"kind": "act",
"impl": "imperative",
"description": "Fill a QR template and optionally adjust basic styling through the visible Codebench UI.",
"inputSchema": {
"type": "object",
"properties": {
"template": {
"type": "string",
"enum": [
"url",
"text",
"wifi",
"vcard",
"email",
"sms",
"tel",
"geo",
"event"
]
},
"fields": {
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 10000
},
"text": {
"type": "string",
"maxLength": 10000
},
"ssid": {
"type": "string",
"maxLength": 10000
},
"pass": {
"type": "string",
"maxLength": 10000
},
"enc": {
"type": "string",
"enum": [
"WPA",
"WEP",
"nopass"
]
},
"hidden": {
"type": "boolean"
},
"fn": {
"type": "string",
"maxLength": 10000
},
"org": {
"type": "string",
"maxLength": 10000
},
"title": {
"type": "string",
"maxLength": 10000
},
"phone": {
"type": "string",
"maxLength": 10000
},
"email": {
"type": "string",
"maxLength": 10000
},
"adr": {
"type": "string",
"maxLength": 10000
},
"to": {
"type": "string",
"maxLength": 10000
},
"subject": {
"type": "string",
"maxLength": 10000
},
"body": {
"type": "string",
"maxLength": 10000
},
"num": {
"type": "string",
"maxLength": 10000
},
"msg": {
"type": "string",
"maxLength": 10000
},
"lat": {
"type": "string",
"maxLength": 10000
},
"lng": {
"type": "string",
"maxLength": 10000
},
"loc": {
"type": "string",
"maxLength": 10000
},
"start": {
"type": "string",
"maxLength": 10000
},
"end": {
"type": "string",
"maxLength": 10000
}
},
"additionalProperties": false
},
"style": {
"type": "object",
"properties": {
"errorCorrection": {
"type": "string",
"enum": [
"L",
"M",
"Q",
"H"
]
},
"size": {
"type": "integer",
"minimum": 120,
"maximum": 2000
},
"margin": {
"type": "integer",
"minimum": 0,
"maximum": 80
},
"foreground": {
"type": "string",
"pattern": "^#[0-9A-Fa-f]{6}$"
},
"background": {
"type": "string",
"pattern": "^#[0-9A-Fa-f]{6}$"
},
"transparent": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"required": [
"template"
],
"additionalProperties": false
}
}set_barcodeAction
Set a barcode or 2D payload and optional rendering controls through the visible Codebench UI.
View tool JSON
{
"name": "set_barcode",
"kind": "act",
"impl": "imperative",
"description": "Set a barcode or 2D payload and optional rendering controls through the visible Codebench UI.",
"inputSchema": {
"type": "object",
"properties": {
"format": {
"type": "string",
"maxLength": 64
},
"data": {
"type": "string",
"maxLength": 10000
},
"showText": {
"type": "boolean"
},
"scale": {
"type": "integer",
"minimum": 1,
"maximum": 8
},
"height": {
"type": "integer",
"minimum": 5,
"maximum": 40
},
"foreground": {
"type": "string",
"pattern": "^#[0-9A-Fa-f]{6}$"
},
"background": {
"type": "string",
"pattern": "^#[0-9A-Fa-f]{6}$"
},
"transparent": {
"type": "boolean"
}
},
"required": [
"format",
"data"
],
"additionalProperties": false
}
}export_codeAction
Start a PNG or SVG download for the current QR code or barcode using Codebench's existing controls.
View tool JSON
{
"name": "export_code",
"kind": "act",
"impl": "imperative",
"description": "Start a PNG or SVG download for the current QR code or barcode using Codebench's existing controls.",
"inputSchema": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"qr",
"barcode"
]
},
"format": {
"type": "string",
"enum": [
"png",
"svg"
]
}
},
"required": [
"kind",
"format"
],
"additionalProperties": false
}
}