Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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();`, }); }
  • 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: {}, }, },
  • The tool name registration and dispatch to handler in the callTool switch statement.
    case "gridstack_get_cell_height": return this.getCellHeight();

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/raghavsharma-simpplr/gridstack-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server