fileRead
Reads file content from specified paths, supporting plain text and JSON formats. Enables users to extract and process data directly from files for various applications.
Instructions
讀取檔案內容,支援純文本和JSON格式
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encoding | No | ||
| filePath | Yes | ||
| mode | No | text |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"encoding": {
"type": "string"
},
"filePath": {
"type": "string"
},
"mode": {
"default": "text",
"enum": [
"text",
"json"
],
"type": "string"
}
},
"required": [
"filePath"
],
"type": "object"
}