Skip to main content
Glama

gridstack_get_column

Retrieve the current number of columns in a GridStack layout to manage widget positioning and responsive grid structure.

Instructions

Get current number of columns

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Tool schema definition in the listTools() method, specifying the name, description, and empty input schema for the gridstack_get_column tool.
    { name: "gridstack_get_column", description: "Get current number of columns", inputSchema: { type: "object", properties: {}, }, },
  • Registration in the callTool switch statement that dispatches execution to the getColumn handler method.
    case "gridstack_get_column": return this.getColumn();
  • The main handler function implementing the gridstack_get_column tool logic. It generates a formatted response containing the GridStack JavaScript code to retrieve the current number of columns (`grid.column()`).
    private async getColumn(): Promise<string> { return this.utils.generateGridStackCode("getColumn", { code: `const columns = grid.column();`, }); }

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