read_file
Read files on a Linux system by specifying the path and optional encoding to retrieve their contents.
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": {
"filePath": "<filePath>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encoding | No | 文件编码(默认 utf-8) | utf-8 |
| filePath | Yes | 要读取的文件路径 |