ファイルの読み込み
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
許可フォルダ内にあるテキストファイルの内容を読み込んで返します。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 読み込むファイルのパス | |
| encoding | No | 文字コード | utf-8 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 実際に読んだファイルの絶対パス | |
| size | Yes | ファイルのバイト数 | |
| content | Yes | ファイルの内容 |