read_file
Read text file contents given a path, with encoding and byte-limit options, to support AI assistants working in Windows developer environments.
Instructions
Read and return the contents of a text 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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file (absolute or relative to cwd). | |
| encoding | No | File encoding. Default: "utf-8". | utf-8 |
| max_bytes | No | Maximum bytes to read. Larger files are truncated. Default: 1,000,000 (1 MB). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||