Create floorplan region
create_floorplan_regionCreate a region (labeled room or zone) on a floorplan. Polygon coordinates are normalized 0-1 with origin top-left. Optionally link the region to an existing Location via location_id. Requires floorplan_regions:write scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Region label (e.g. "Boiler Room 2B") | |
| source | No | "manual" (default) or "ai" for AI-detected | |
| polygon | Yes | Polygon outline as an array of [x, y] points in normalized 0-1 coordinates (origin top-left). At least 3 points. | |
| reviewed | No | True if an admin has reviewed this region (default: true for manual, false for ai) | |
| confidence | No | AI confidence score (0-1), only set when source=ai | |
| location_id | No | Linked Location ID (resolved via list_locations) | |
| floorplan_id | Yes | Floorplan this region belongs to |