ファイルの読み込み
read_fileRead and return the contents of a text file within allowed directories. Specify the file path and optional encoding to get the file data.
Instructions
許可フォルダ内にあるテキストファイルの内容を読み込んで返します。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 読み込むファイルのパス | |
| encoding | No | 文字コード | utf-8 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 実際に読んだファイルの絶対パス | |
| size | Yes | ファイルのバイト数 | |
| content | Yes | ファイルの内容 |