Initialize and Reset Rack Enclosure
init_rackInitialize a new rack project and destructively reset the active rack.yaml state to an empty enclosure with the specified width standard, U height, and rail depth. Overwrites the current enclosure and clears all mounted devices, child sub-modules, cables, and external endpoints, while pushing the previous project state onto the in-memory undo stack for recovery via undo_redo. 'project_name' sets the title used in exported schematics and BOMs, 'rail_depth_mm' plus 'rear_clearance_mm' bounds total +Z chassis and rear plug depth before wall collision, and 'front_door_clearance_mm' is enforced only when 'enclosure_type' has a closed front door. Use when starting a rack design from scratch or changing enclosure dimensions; use validate_rack to inspect the current rack, or modify_equipment to move or remove individual devices.
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": {
"standard": "<standard>",
"u_height": "<u_height>",
"rail_depth_mm": "<rail_depth_mm>"
},
"name": "init_rack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| standard | Yes | Mechanical rack width standard ("19inch" = 482.6mm, "10inch" = 254.0mm, "6inch" = 152.4mm). | |
| u_height | Yes | Total usable vertical rack height in Rack Units (1U = 44.45mm, 1..60U). | |
| project_name | No | Human-readable project name stored in rack.yaml. | Rack Project |
| rail_depth_mm | Yes | Front-to-rear mounting rail depth in millimeters along the Z-axis (max 2000mm). | |
| enclosure_type | No | Enclosure door style ("open-frame", "closed-glass-front", or "closed-vented-front"). | open-frame |
| rear_clearance_mm | No | Available clearance in millimeters behind the rear mounting rails (Z=rail_depth_mm) for power plugs and bending radii. | |
| front_door_clearance_mm | No | Available clearance in millimeters between front mounting rails (Z=0) and a closed front door. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Rack initialization payload. | |
| issues | Yes | Structured diagnostic findings (ERROR, WARNING, INFO) with actionable remediation_suggestions. | |
| status | Yes | Deterministic execution outcome: "VALID" when the operation succeeded with 0 validation errors; "INVALID" when precondition or engineering validation errors are present in issues[]. | |
| summary | Yes | Concise human- and agent-readable summary of the tool result and validation status. |