Play named waveform
dglab_play_waveformPlay a saved or hot-loaded waveform on a selected channel, optionally bounded to a duration by repeating/truncating. Replaces the active waveform task while keeping intensity unchanged.
Instructions
Play a named waveform (built-in preset or hot-loaded .pulse file; matching is case/separator-insensitive across ids and English/Chinese names) on one channel. Optionally repeat or truncate it to durationMs (max 10000ms). Requires a safe nonzero intensity on the channel; never changes intensity. Playback replaces the channel's current waveform task.
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": {
"channel": "<channel>",
"name": "<name>"
},
"name": "dglab_play_waveform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Waveform name or id. | |
| slotId | No | Device slot id within the app. Omit when exactly one compatible device exists. | |
| channel | Yes | Output channel | |
| clientId | No | Paired app (controlled client) id. Omit when exactly one app is attached. | |
| durationMs | No | Bound the playback to this duration by repeating/truncating. |