Why this script (screenshot + OCR + clipboard copy) dont work?

gnome-screenshot -a | tesseract -l "eng" stdin stdout | wl-copy
Error during processing.
  • Im runnning through toolbox in silverblue
  • Trying to make a OCR capture in gnome, first gnome screenshot, than throw in Tesseract than throw in wl-copy
  • system fedora wayland gnome

found a cumbersome way

gnome-screenshot -a -f ~/Desktop/test-screen.png && cat ~/Desktop/test-screen.png | tesseract -l "eng" stdin stdout | wl-copy && rm ~/Desktop/test-screen.png

Still listening any better recomendation to approach this

now im trying to find a way to make a keyboard shortcut to run this through container