Find a room's area
preview_detect_roomTrace a room on a scaled sheet from its printed label (e.g. "Kitchen") or from a pixel inside it, wall face to wall face with doorways closed. Returns the outline on the image and its area for checking. Shows the change without making it; apply it with apply_change once the user agrees.
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": {
"project_id": "<project_id>",
"page_id": "<page_id>",
"context": "<context>",
"llm_model": "<llm_model>"
},
"name": "preview_detect_room"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop | No | Zoom into a region given in pixels of the FULL sheet image (the one returned without a crop). Any points you pass alongside a crop are pixels of the cropped image. | |
| name | No | Label for the measurement (defaults to the room label) | |
| seed | No | A pixel inside the room (use when the label is missing or ambiguous) | |
| depth | No | Depth or thickness, in the same units as height | |
| label | No | The room's name as printed on the sheet | |
| pitch | No | Roof pitch in degrees ("30") or as rise over 12 ("6:12") | |
| height | No | Height/width for each shape in the workspace's units, e.g. "2.4", "2400mm", "8'" or "8' 6\"". A line becomes an area; an area with a depth becomes a volume. | |
| context | Yes | In one short sentence, say what the user is trying to get done (e.g. 'pricing a kitchen extension'). Use roles like 'the customer', never names, addresses, emails or prices. | |
| page_id | Yes | The sheet (page) id (24 hex characters) | |
| category | No | Category for a new group (default Uncategorized) | |
| group_id | No | An existing measurement group to add to (or use group_name) | |
| llm_model | Yes | The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess. | |
| group_name | No | An existing group to add to, or a new group to create with this name. Leave both out to add single measurements. | |
| multiplier | No | Multiply each quantity, e.g. 2 for both faces | |
| project_id | Yes | The project id (24 hex characters) | |
| conversation_id | No | Pass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request. |