Read Media File

Read an image or audio file. Returns the base64 encoded data and MIME type. Only works within allowed directories.

xiaobai1017 Updated

File contents

Read Media File

Read an image or audio file. Returns the base64 encoded data and MIME type. Only works within allowed directories.

Purpose

This skill provides access to the MCP tool read_media_file. It allows you to read an image or audio file. returns the base64 encoded data and mime type. only works within allowed directories..

Parameters

The tool accepts the following parameters:

path

Required

  • Type: string
  • Description: No description provided

Usage Instructions

To use this tool:

  1. Prepare the parameters according to the schema above
  2. Invoke the MCP tool read_media_file with the prepared parameters
  3. Process the result returned by the tool

Example

{
  "path": "example_value"
}

Expected Output

The tool returns data with the following structure:

  • content (array): No description provided

Notes

  • This skill requires an active MCP connection to the server providing the read_media_file tool
  • Ensure the MCP server is properly configured and running before attempting to use this tool
  • Review the parameter requirements carefully to avoid errors

xiaobai1017/mcp2skills/tree/main/skills/read_media_file commit 7c0467a8e5

Frequently asked questions

npx skillmds@latest add xiaobai1017/read-media-file