read_multiple_files
Read and retrieve contents from multiple UTF-8 text files simultaneously, mapping file paths to their contents. Returns a dictionary of successful reads or an error message if any file fails to be accessed.
Instructions
Read multiple UTF-8 text files at once and return a mapping of paths to contents.
Args: paths (List[str]): List of file paths to read (absolute or relative to allowed directories)
Returns: Dict[str, str] | str: Dictionary mapping absolute file paths to their contents, or error message if any file fails
Note: - All paths must be within allowed directory roots - All files must be UTF-8 text files - If any file fails to read, entire operation returns error string - Returns dictionary for successful reads, string for errors
Input Schema
Name | Required | Description | Default |
---|---|---|---|
paths | Yes |