trigger_media_input_action
Trigger play, pause, stop, restart, next, or previous actions on a media source in OBS to control playback directly.
Instructions
Trigger a transport action on a media source.
Args: input_name: Name of the media input. action: One of OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAY, _PAUSE, _STOP, _RESTART, _NEXT, _PREVIOUS.
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": {
"input_name": "<input_name>",
"action": "<action>"
},
"name": "trigger_media_input_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| input_name | Yes |