Toggle media play/pause
services_media_play_pauseToggle a media player between playing and paused via Home Assistant. Use for a simple play/pause action when checking current state first is unnecessary.
Instructions
Toggle a media player between playing and paused.
Calls media_player.media_play_pause with {"entity_id": entity_id}
over HTTP; the resulting state depends on the player's current state.
Use when: a simple play/pause toggle is enough, without checking current state first. Returns: the list of states changed by the call.
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": {
"entity_id": "<entity_id>"
},
"name": "services_media_play_pause"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | Full media_player entity ID to control, e.g. 'media_player.living_room'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |