Read Media File
read_media_fileExtract base64-encoded data and MIME type from image or audio files within permitted directories for processing by AI agents.
Instructions
Read an image or audio file. Returns the base64 encoded data and MIME type. Only works within allowed directories.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "read_media_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes |