SciFiReaders.mcp.scifireaders_mcp.read_file

Contents

SciFiReaders.mcp.scifireaders_mcp.read_file#

SciFiReaders.mcp.scifireaders_mcp.read_file(file_path: str, return_mode: str = 'file') Dict[str, Any][source]#

Read a file with the appropriate SciFiReaders reader.

The payload includes: - available_readers: all registered readers in the package - matched_readers: readers that reported they could read the file - selected_reader: the reader that was actually used - output_file_path: generated NeXus HDF5 path containing exported datasets - datasets: serialized dataset payloads when inline output is requested

Parameters:
  • file_path (str) – Source file to read.

  • return_mode (str, optional) – One of "file", "data", or "both".