ScanBarcodeTool
Decodes a 1D/product barcode from a still image file (referenced by image_uri) using ML Kit, restricted to EAN-13, UPC-A, CODE-128, CODE-39, EAN-8, and UPC-E. Reads an existing image — does NOT open the camera, and the module declares no permissions. image_uri is validated by ImageUriValidator (external-storage sandbox for file://, host-owned content:// authorities refused). Returns the first barcode found, or found = false when the image decodes but contains none; a decode/scanner failure is an error.
Result keys: raw_value, format (one of the supported format names, or "UNKNOWN"), found.