Create a room plan
create_planUse when the user wants to lay out, furnish, fit furniture into, or get a floor plan of a room or home: returns a checked plan, a drawing, and an editable Room Planner link. One room or a whole floor (rooms joined by doors), any outline, round and L-shaped pieces.
Returns {plan, issues, summary, url, editable}: the plan normalised in its unit, every layout issue (as check_layout), a summary, the link. url opens the plan in the Room Planner editor; it encodes the whole plan, so only a complete link works. Issues list overlaps, blocked doors and swings and pieces outside rooms (errors, warnings) and tight gaps (info); message positions are piece centres.
Plan format (version 4): {version:4, name, unit, rooms, items}. Every length is in unit (use the user's). One floor coordinate system: x grows right, y grows DOWN; the floor's top-left corner at {x:0,y:0}.
Room outline: interior corners, clockwise. A W x D rectangle at (X,Y) is [{x:X,y:Y},{x:X+W,y:Y},{x:X+W,y:Y+D},{x:X,y:Y+D}], walls 0 top, 1 right, 2 bottom, 3 left; wall i runs from outline[i] to outline[i+1].
Opening offset runs clockwise from the wall's start corner to the opening's near edge (RIGHT TO LEFT on a bottom wall, BOTTOM TO TOP on a left wall), or from the end named by from ("left"/"right"/"top"/"bottom" as seen on the plan, or "end"): a door 2 ft from the bottom of the right wall is {wall:1, offset:2, from:"bottom"}.
Item placement {x, y, rotation} is the CENTRE of the piece, rotation clockwise degrees; width runs along x and depth along y before rotation. No placement: set aside (kept, off the floor).
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": {
"plan": "<plan>"
},
"name": "create_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | The whole plan; format in create_plan's description. |