read_file
Extract and return the full contents of a file from the MCP Filesystem Server. Specify the file path and optional encoding (default: utf-8) to retrieve data as a string.
Instructions
Read the complete contents of a file.
Args:
path: Path to the file
encoding: File encoding (default: utf-8)
ctx: MCP context
Returns:
File contents as a string
Input Schema
Name | Required | Description | Default |
---|---|---|---|
encoding | No | utf-8 | |
path | Yes |
Input Schema (JSON Schema)
{
"properties": {
"encoding": {
"default": "utf-8",
"title": "Encoding",
"type": "string"
},
"path": {
"title": "Path",
"type": "string"
}
},
"required": [
"path"
],
"title": "read_fileArguments",
"type": "object"
}