read_file_tool
Reads the contents of a file from the filesystem so AI tools can access it by absolute or relative path, with optional encoding.
Instructions
Read the contents of a file
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_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to the file | |
| encoding | No | File encoding (default: utf-8) | utf-8 |