update_stream
Update an existing go2rtc stream by changing its source URL via PATCH /api/streams, while blocking exec, echo, and expr sources unless explicitly enabled.
Instructions
Dynamically update an existing stream on go2rtc (PATCH /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": "update_stream"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_url | Yes | ||
| stream_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||