esp_media
Press hardware media keys—mute, volume, playback, track navigation—on the ESP32 device, with configurable press counts, regardless of which window is active.
Instructions
Press a media key on the hardware device: mute, volume_up, volume_down, play_pause, next_track, previous_track, stop; count presses (e.g. 5 volume steps). Works whatever window is in front. Needs firmware 0.3.0 (firmware_incompatible otherwise).
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": {
"key": "<key>",
"control_id": "<control_id>"
},
"name": "esp_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The media key. | |
| count | No | How many presses, 1..50 (default 1), e.g. 5 for five volume steps. | |
| control_id | Yes | From esp_control begin. | |
| request_id | No | Optional idempotency key: repeating a call with the same request_id within 5 min returns the first receipt (also an uncertain one) without running the action again. |