get_floorplans
Retrieve all configured floorplans from Domoticz to view your home's floorplan layout.
Instructions
Get all configured floorplans 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:907-912 (handler)The 'get_floorplans' tool handler function. It's an MCP tool registered with @mcp.tool() that calls the Domoticz API with 'type=plans' to get all configured floorplans.
@mcp.tool() async def get_floorplans() -> str: """Get all configured floorplans in Domoticz.""" async with create_client() as client: response = await _do_request(client, "GET", f"{DOMOTICZ_API_URL}?type=plans") return response.text - src/domoticz_mcp/server.py:907-907 (registration)Registration of 'get_floorplans' as an MCP tool using the @mcp.tool() decorator on line 907.
@mcp.tool()