add_stream
Add or overwrite a go2rtc stream by name from a source URL to dynamically register or update camera feeds.
Instructions
Dynamically add or overwrite a stream on go2rtc (PUT /api/streams).
Rejects exec:, echo:, and expr: sources unless GO2RTC_ALLOW_EXEC_STREAMS=true.
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": {
"stream_name": "<stream_name>",
"source_url": "<source_url>"
},
"name": "add_stream"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_url | Yes | ||
| stream_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||