Play a local audio file
play_audioPlays a local audio file through the system’s default output device; supports WAV, MP3, M4A, AAC, OGG, and FLAC.
Instructions
Play a local audio file through the system's default output device. Supports WAV, MP3, M4A, AAC, OGG, FLAC.
Args: input_file_path (str): Absolute path or relative to SONILO_MCP_BASE_PATH.
Returns: Success message including the played path.
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": {
"input_file_path": "<input_file_path>"
},
"name": "play_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| type | Yes | ||
| _meta | No | ||
| annotations | No |