# file_reader

Reads a file from disk and returns its text content along with metadata. Includes a safety limit on file size to prevent accidental memory exhaustion.

## Usage

```python
from skill import run

result = run("/path/to/file.txt")
print(result["content"])     # file contents
print(result["size_bytes"])  # file size
```

## Parameters

- `path` (str): Absolute or relative file path.
- `encoding` (str, optional): Text encoding. Default: `utf-8`.
- `max_bytes` (int, optional): Maximum file size in bytes. Default: 1,000,000 (1 MB).

## Returns

A dict with:
- `content` (str): The file's text content
- `path` (str): Resolved absolute path
- `size_bytes` (int): File size in bytes
- `encoding` (str): Encoding used to read the file
