Add media
media_addAdds local files or network inputs to an OBS scene, with immediate positioning and sizing for the new media source.
Instructions
Create an OBS Media Source in a scene. Supports local files and network inputs and can position/size the new scene item immediately.
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": {
"source": "<source>"
},
"name": "media_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| fit | No | contain | |
| loop | No | ||
| width | No | ||
| height | No | ||
| source | Yes | Local file path or network media URL/input. | |
| sceneId | No | OBS scene UUID. | |
| autoplay | No | ||
| rotation | No | ||
| mediaName | No | ||
| sceneName | No | OBS scene name. | |
| sourceMode | No | auto | |
| inputFormat | No | ||
| speedPercent | No | ||
| clearOnMediaEnd | No | ||
| networkSeekable | No | ||
| restartOnActivate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |