version: urirun.flow.v1
source:
  nl: "Użyj mocy hosta do OCR plików, które znajdują się na node Lenovo, transferując je przez fs:// file blob."
task:
  id: host-compute-node-ocr
  title: "Host compute OCR for remote node files"
steps:
  - id: list_node_files
    uri: fs://host/dir/query/list
    payload:
      path: "."
    runs_on: laptop
  - id: fetch_one_blob
    uri: fs://host/file/query/blob
    payload:
      path: "2026.05/example.pdf"
      max_bytes: 10485760
    runs_on: laptop
  - id: host_ocr
    uri: ocr://host/document/query/text
    payload:
      filename: "example.pdf"
      bytes_b64: "${fetch_one_blob.bytes_b64}"
      max_chars: 1200
    runs_on: host
  - id: host_ocr_from_uri
    uri: ocr://host/document/query/text_from_uri
    payload:
      source_node_url: "http://192.168.188.201:8765"
      source_uri: "fs://host/file/query/blob"
      source_payload_json: "{\"path\":\"2026.05/example.pdf\",\"max_bytes\":10485760}"
      max_chars: 1200
    runs_on: host
