bulc_get_home_info
Retrieve project details like file status, room counts, and structural elements from BULC Building Designer to analyze building design data.
Instructions
Get general information about the current project including file path, modification status, level count, room count, wall count, and furniture count.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/context.ts:184-190 (handler)The specific handler case for the 'bulc_get_home_info' tool. It sends a 'get_home_info' command to the BULC client with empty parameters and processes the result.case "bulc_get_home_info": { result = await client.sendCommand({ action: "get_home_info", params: {}, }); break; }
- src/tools/context.ts:30-42 (schema)Tool definition including name, description, input schema (empty object since no parameters), and annotations indicating it's read-only.{ name: "bulc_get_home_info", description: "Get general information about the current project including file path, modification status, level count, room count, wall count, and furniture count.", inputSchema: { type: "object" as const, properties: {}, }, annotations: { readOnlyHint: true, destructiveHint: false, }, },
- src/index.ts:152-162 (registration)Routing logic in the main CallToolRequest handler that directs 'bulc_get_home_info' calls to the context tool handler.name === "bulc_get_spatial_context" || name === "bulc_get_home_info" || name === "bulc_list_levels" || name === "bulc_create_level" || name === "bulc_set_current_level" || name === "bulc_undo" || name === "bulc_redo" || name === "bulc_save" ) { return await handleContextTool(name, safeArgs); }
- src/index.ts:54-58 (registration)Registers the list of all tools (including 'bulc_get_home_info' via contextTools spread into allTools) for the ListToolsRequest.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: allTools, }; });