Read File
fc_read_fileRead file content by path, with optional encoding and line limit. Returns text or Base64 for binary files.
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"
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) |