get_floorplans
Retrieve all configured floorplans in your Domoticz home automation system to view room layouts and device placements.
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:956-960 (handler)The get_floorplans tool handler - an async function decorated with @mcp.tool() that retrieves all configured floorplans from Domoticz by calling the /json.htm?type=plans API endpoint.
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:955-956 (registration)The @mcp.tool() decorator registering 'get_floorplans' as an MCP tool on the FastMCP instance.
@mcp.tool() async def get_floorplans() -> str: