encode_file_to_base64
Reads a file from an absolute path and returns its contents encoded as a base64 string.
Instructions
Encode a file to a base64 string.
This tool reads a file in binary mode and returns its contents encoded as a base64 string. Only absolute paths are allowed for security reasons.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the file to encode to base64 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |