Draw a cabinet or create a Cabinet-X design
cabinetx_cloud_generateCreate and save a Cabinet-X cloud design without an open browser or desktop app. For “draw a cabinet” or “我要画一个柜子”, call with mode:"singleCabinet" and a fresh requestId; no measurements or customer information are needed. Put everything the user already said into cabinet (type, width in inches, doors), e.g. “30 inch double-door base cabinet” → cabinet:{type:"base",width:30,doors:2}, so the cabinet is right in one call. When the user names the type and width, create it directly without asking. When they only say “draw a cabinet” with no type or width, ask ONE short question first (type: base/drawer/sink/upper/tall, and width — common 24, 30, 36 inches) and accept “any/default” as an answer to use the defaults; never run a multi-question interview. For an empty design canvas use mode:"blank". Both manual modes use the connected project's existing walls or one 120-inch straight wall when none exist, and skip automatic room layout. For a complete kitchen layout use mode:"layout" and provide the measurements in inches or use the connected project's actual walls. Pass projectId and its opaque designId together for an already-connected project; omit both to start a new draft. Return openUrl to the user and keep projectId and the opaque designId in tool calls for follow-up cabinetx_mobile_design edits. Never display the opaque designId in prose.
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": {
"requestId": "<requestId>"
},
"name": "cabinetx_cloud_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | singleCabinet draws one cabinet (see cabinet). blank opens a canvas with no cabinets. layout runs automatic kitchen design. With mode omitted, a wall survey requests layout, otherwise the default is blank. | |
| prefs | No | Optional solver layout preferences. | |
| action | No | Generate by default. To recover a possibly committed result after timeout, call status with only the same requestId. If no result is found, resend identical generation arguments and requestId. | |
| survey | No | Supply known wall measurements in inches when needed (shape and non-empty walls are required together; empty walls may only pair with shape). I uses wall A; L uses A,B; U uses A,B,C; O uses A,B,C,D. Omit if unknown or when using an existing survey. | |
| cabinet | No | Only for mode:"singleCabinet". Omitted fields use defaults (ordinary base cabinet, narrowest stock width, automatic door count). The response cabinet field lists the saved cabinet and the widths/swaps it can change to. | |
| customer | No | Customer and project metadata. Required only when starting a new complete layout project. | |
| delivery | No | Default owner-only link. Use share only if the user asks for an expiring read-only link. Use handoff only if the user asks to let another person save a copy of a new blank or single-cabinet draft with no customer metadata. | |
| designId | No | Opaque design handle bound to this chat when projectId is supplied. | |
| projectId | No | Only for a project already connected in this chat. | |
| requestId | Yes | Fresh UUID for idempotent creation/generation. Reuse the same requestId only when retrying an uncertain timeout with identical arguments. | |
| initialEdits | No | Optional core finish/style edits applied to the new design before saving (e.g. {op:"front",all:true,color:[0.18,0.27,0.38]}). |