get_cameras
Retrieve a list of all cameras configured in your Domoticz system.
Instructions
Get all configured cameras in Domoticz.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/domoticz_mcp/server.py:948-953 (handler)The get_cameras tool handler function. It is registered with @mcp.tool() and calls the Domoticz JSON API with 'type=command¶m=getcameras' to retrieve all configured cameras.
@mcp.tool() async def get_cameras() -> str: """Get all configured cameras in Domoticz.""" async with create_client() as client: response = await _do_request(client, "GET", f"{DOMOTICZ_API_URL}?type=command¶m=getcameras") return response.text - src/domoticz_mcp/server.py:948-948 (registration)The get_cameras tool is registered with the @mcp.tool() decorator on the FastMCP instance 'mcp'.
@mcp.tool()