read_files
Read multiple files simultaneously with automatic encoding detection, returning content, MIME types, and metadata in a structured format for efficient file processing.
Instructions
Read multiple files in a single call.
Args: file_paths: List of absolute file paths. encoding: "auto"/None for auto-detection, or specify: utf-8, gbk, gb2312.
Returns: list of dicts, each with keys: - path: File path - content: File content as string - mimeType: MIME type of the file - isImage: Boolean indicating if file is an image - encoding: Detected encoding (e.g., "utf_8", "gbk", "gb2312") - encodingConfidence: Confidence score for encoding detection (float or None) - error: Error message (only present if read failed)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_paths | Yes | ||
| encoding | No |