gridstack_get_cell_height
Retrieve the current height of grid cells to maintain consistent widget sizing and responsive layout alignment in dashboard designs.
Instructions
Get current cell height
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/index.ts:1083-1087 (handler)The handler function that implements the gridstack_get_cell_height tool. It generates JavaScript code to call grid.getCellHeight() on the GridStack instance and returns it via the utility.private async getCellHeight(): Promise<string> { return this.utils.generateGridStackCode("getCellHeight", { code: `const cellHeight = grid.getCellHeight();`, }); }
- src/tools/index.ts:562-568 (schema)The input schema and metadata for the tool, registered in listTools(). No input parameters are required.name: "gridstack_get_cell_height", description: "Get current cell height", inputSchema: { type: "object", properties: {}, }, },
- src/tools/index.ts:828-830 (registration)The tool name registration and dispatch to handler in the callTool switch statement.case "gridstack_get_cell_height": return this.getCellHeight();