gridstack_get_cell_height
Retrieve the current height of grid cells to maintain consistent widget sizing and responsive layouts in dashboard interfaces.
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 core logic of the gridstack_get_cell_height tool by generating JavaScript code to call grid.getCellHeight() on the GridStack instance.private async getCellHeight(): Promise<string> { return this.utils.generateGridStackCode("getCellHeight", { code: `const cellHeight = grid.getCellHeight();`, }); }
- src/tools/index.ts:561-568 (registration)Registration of the tool in the listTools() method, defining its name, description, and input schema (empty object, no parameters).{ name: "gridstack_get_cell_height", description: "Get current cell height", inputSchema: { type: "object", properties: {}, }, },
- src/tools/index.ts:564-567 (schema)Input schema definition for the tool, specifying an empty object (no input parameters required).inputSchema: { type: "object", properties: {}, },
- src/tools/index.ts:828-829 (handler)Dispatch handler in the callTool switch statement that invokes the specific getCellHeight method.case "gridstack_get_cell_height": return this.getCellHeight();