Play media range
media_play_rangePlay a media source segment from startMs to endMs, pausing or stopping at the exact end frame.
Instructions
Play only a specified [startMs,endMs] range. Returns immediately while the server watches the real OBS media cursor; at end it pauses on the exact end frame by default or stops.
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": {
"startMs": "<startMs>",
"endMs": "<endMs>"
},
"name": "media_play_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endMs | Yes | ||
| mediaId | No | Media ID. This is the OBS input UUID returned by media_add/media_list. | |
| startMs | Yes | ||
| endAction | No | pause | |
| mediaName | No | OBS media input name. | |
| speedPercent | No | ||
| pollIntervalMs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |