read_file
Read a workspace text file using UTF-8 or a chosen encoding, returning its path, size, encoding, and full contents; rejects missing, oversized, or invalid files.
Instructions
Read a UTF-8 (or other specified encoding) text file from the workspace.
Args: path: Path to the file, relative to the workspace root. encoding: Text encoding to decode with (default "utf-8").
Returns: The file's path, size in bytes, encoding, and full text content. Fails if the file does not exist, isn't a file, exceeds the configured max file size, or isn't valid text in that encoding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| encoding | No | utf-8 |