{"ok":true,"site":{"host":"codebench.trfny.com","url":"https://codebench.trfny.com/","type":"live","desc":"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.","tools":[{"name":"read_code_state","kind":"answer","impl":"imperative","description":"Read the current QR, barcode and latest scanner state without changing the Codebench UI.","title":"Read Codebench state","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"includePayload":{"type":"boolean","default":false}},"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"set_qr_code","kind":"act","impl":"imperative","description":"Fill a QR template and optionally adjust basic styling through the visible Codebench UI.","title":"Set Codebench QR code","annotations":{"readOnlyHint":false,"untrustedContentHint":true},"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},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"name":"set_barcode","kind":"act","impl":"imperative","description":"Set a barcode or 2D payload and optional rendering controls through the visible Codebench UI.","title":"Set Codebench barcode","annotations":{"readOnlyHint":false,"untrustedContentHint":true},"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},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"},{"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.","title":"Export Codebench code","annotations":{"readOnlyHint":false,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"kind":{"type":"string","enum":["qr","barcode"]},"format":{"type":"string","enum":["png","svg"]}},"required":["kind","format"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute"}],"category":"Developer Tools","favicon":"/favicons/codebench.trfny.com.png","apiSurface":"spec","toolCount":4}}