bulc_modify_mesh
Modify existing FDS mesh dimensions, cell counts, or properties for fire simulation adjustments in building design workflows.
Instructions
Modify an existing FDS mesh. Change dimensions, cell counts, or other properties.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meshId | Yes | Mesh ID to modify | |
| xMin | No | New minimum X coordinate in meters | |
| xMax | No | New maximum X coordinate in meters | |
| yMin | No | New minimum Y coordinate in meters | |
| yMax | No | New maximum Y coordinate in meters | |
| zMin | No | New minimum Z coordinate in meters | |
| zMax | No | New maximum Z coordinate in meters | |
| iCells | No | New number of cells in X direction | |
| jCells | No | New number of cells in Y direction | |
| kCells | No | New number of cells in Z direction |
Implementation Reference
- src/tools/mesh.ts:272-279 (handler)Handler logic for the 'bulc_modify_mesh' tool. Validates the input arguments using ModifyMeshSchema and sends a 'modify_mesh' command to the BULC client via sendCommand.case "bulc_modify_mesh": { const validated = ModifyMeshSchema.parse(args); result = await client.sendCommand({ action: "modify_mesh", params: validated, }); break; }
- src/tools/mesh.ts:218-229 (schema)Zod validation schema for the input parameters of the 'bulc_modify_mesh' tool.const ModifyMeshSchema = z.object({ meshId: z.string(), xMin: z.number().optional(), xMax: z.number().optional(), yMin: z.number().optional(), yMax: z.number().optional(), zMin: z.number().optional(), zMax: z.number().optional(), iCells: z.number().int().positive().optional(), jCells: z.number().int().positive().optional(), kCells: z.number().int().positive().optional(), });
- src/tools/mesh.ts:120-174 (registration)MCP tool registration for 'bulc_modify_mesh', including name, description, input schema (JSON schema), and annotations. Part of the exported meshTools array.{ name: "bulc_modify_mesh", description: "Modify an existing FDS mesh. Change dimensions, cell counts, or other properties.", inputSchema: { type: "object" as const, properties: { meshId: { type: "string", description: "Mesh ID to modify", }, xMin: { type: "number", description: "New minimum X coordinate in meters", }, xMax: { type: "number", description: "New maximum X coordinate in meters", }, yMin: { type: "number", description: "New minimum Y coordinate in meters", }, yMax: { type: "number", description: "New maximum Y coordinate in meters", }, zMin: { type: "number", description: "New minimum Z coordinate in meters", }, zMax: { type: "number", description: "New maximum Z coordinate in meters", }, iCells: { type: "integer", description: "New number of cells in X direction", }, jCells: { type: "integer", description: "New number of cells in Y direction", }, kCells: { type: "integer", description: "New number of cells in Z direction", }, }, required: ["meshId"], }, annotations: { readOnlyHint: false, destructiveHint: true, }, },