generate_waveform
Render a PNG waveform image from an audio or video file, returning the output path and optional base64 data. Use it to visualize audio amplitude with custom size, color, and scale.
Instructions
Generate a PNG waveform image from an audio or video file. Returns the file path and inlined base64 image data.
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": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>"
},
"name": "generate_waveform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Waveform color in hex or name (such as '0x6366f1', 'white', or 'black'). Default: '0x6366f1'. | 0x6366f1 |
| scale | No | Amplitude scale: 'lin', 'log', or 'sqrt'. Default: 'lin'. | lin |
| width | No | Image width in pixels. Default: 1200. | |
| height | No | Image height in pixels. Default: 280. | |
| inputPath | Yes | Path to the audio or video file. | |
| outputPath | Yes | Destination path for the PNG image. | |
| includeBase64 | No | Return base64 image data in the response for vision models. Default: true. |