Read Media File
read_media_fileReads a file from allowed directories and returns it as base64 content with MIME type, supporting images and audio as inline content and other files as embedded resources.
Instructions
Read a file and return it as a base64-encoded content block with its MIME type. Image and audio files are returned as image/audio content; any other file type is returned as an embedded resource. Only works within allowed directories.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes |