Read File
fc_read_fileRead a file’s text content by path, with optional encoding and line limits, and return binary files as Base64 for safe inspection.
Instructions
Reads the content of a file.
Args:
path (string): Full path to the file
encoding (string, optional): Character encoding (default: utf-8)
max_lines (number, optional): Maximum number of lines (0 = all)
Returns:
File content as text
For binary files: Base64-encoded content
Examples:
path: "C:\Users\User\test.txt"
path: "/home/user/config.json"
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": "fc_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path to the file | |
| encoding | No | Character encoding | utf-8 |
| max_lines | No | Max lines (0 = all) |