Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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();`, }); }
  • 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: {}, }, },
  • Input schema definition for the tool, specifying an empty object (no input parameters required).
    inputSchema: { type: "object", properties: {}, },
  • Dispatch handler in the callTool switch statement that invokes the specific getCellHeight method.
    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