Add a camera
add_cameraRegisters an ONVIF/RTSP IP camera by IP address and short name, keeping credentials out of the conversation via a login form or a user-filled secrets file.
Instructions
Add an ONVIF/RTSP IP camera. Ask the user for the camera's IP address (from its app or router) and pick a short name such as "garage".
Credentials are never passed as arguments: by default the user is shown a login form; with credentials_via="file" a secrets file is created for the user to fill in, then call add_camera again with credentials_via="file". Use credentials_via="file" when the user is on Remote Control or a phone and the form does not appear.
onvif_port: only if the camera uses a non-standard ONVIF port (80 and 2020 are tried). scene: the place it watches, if not its own name (several cameras may share a scene).
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": {
"name": "<name>",
"host": "<host>"
},
"name": "add_camera"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| name | Yes | ||
| scene | No | ||
| onvif_port | No | ||
| credentials_via | No | form |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |