Skip to main content
Glama

gridstack_get_column

Retrieve the current column count in a GridStack layout to monitor grid structure and ensure responsive design alignment.

Instructions

Get current number of columns

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for 'gridstack_get_column' that generates JavaScript code to retrieve the current number of columns from the GridStack grid instance using grid.column().
    private async getColumn(): Promise<string> { return this.utils.generateGridStackCode("getColumn", { code: `const columns = grid.column();`, }); }
  • Registration of the tool in the callTool switch statement, routing calls to the getColumn handler method.
    case "gridstack_get_column": return this.getColumn();
  • Tool registration in listTools(), defining the name, description, and input schema (empty object) for the gridstack_get_column tool.
    { name: "gridstack_get_column", description: "Get current number of columns", inputSchema: { type: "object", properties: {}, }, },
  • Input schema definition for the tool, specifying an empty object (no parameters required).
    inputSchema: { type: "object", properties: {}, },

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