read_multiple_files
Read and retrieve contents of multiple files simultaneously from specified paths. Supports custom encoding and returns a dictionary mapping each file path to its content or error message.
Instructions
Read multiple files at once.
Args:
paths: List of file paths to read
encoding: File encoding (default: utf-8)
ctx: MCP context
Returns:
Dictionary mapping file paths to contents or error messages
Input Schema
Name | Required | Description | Default |
---|---|---|---|
encoding | No | utf-8 | |
paths | Yes |
Input Schema (JSON Schema)
{
"properties": {
"encoding": {
"default": "utf-8",
"title": "Encoding",
"type": "string"
},
"paths": {
"items": {
"type": "string"
},
"title": "Paths",
"type": "array"
}
},
"required": [
"paths"
],
"title": "read_multiple_filesArguments",
"type": "object"
}