Audio info
audio_infoInspect an MP3 or M4A file to read its format, duration, sample rate, and channel count before trimming or splitting audio.
Instructions
Read-only check of an MP3 or M4A file: returns format, duration (as 1:23 and in seconds), sample rate in Hz and channel count as JSON. Call it before trim_audio or split_audio to know the track length. Nothing is written; other audio formats return an error.
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": {
"file": "<file>"
},
"name": "audio_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the file (absolute, or relative to the working directory). |