readBarcodeFromScreen¶
Decode a QR, Data Matrix, Aztec or PDF417 code on screen and store its text in memory under variable. Fails if no readable code is shown, so it also works as an assertion.
Source¶
- Kind: class-backed
- Class:
xyz.block.trailblaze.toolcalls.commands.barcode.ReadBarcodeFromScreenTrailblazeTool
Contract¶
- Visible to LLM: yes (
surface_to_llm: true) - Recordable: yes (
is_recordable: true) - Host-only: no (
requires_host: false)
Input schema¶
Required parameters¶
variable—StringMemory variable to store the decoded text under, e.g. “barcodeValue”.
Optional parameters¶
includeLinearFormats—BooleanAlso read striped barcodes (UPC, EAN, Code 128/39/93, ITF, Codabar). Off by default because ordinary UI can cause false reads; enable only when one is on screen.
Output¶
Returns: string (opaque text content)
Typed result schemas (kind: query | action, MCP structuredContent) are not yet carried by the resolved manifest — this section will gain detail when that lands.