Skip to main content
Glama

gridstack_get_float

Retrieve the current floating state of widgets in a GridStack dashboard to determine which elements are set to float above the grid layout.

Instructions

Get current float state

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the tool logic: generates code to call `grid.float()` and retrieve the current float mode state from the GridStack instance.
    private async getFloat(): Promise<string> { return this.utils.generateGridStackCode("getFloat", { code: `const floatMode = grid.float();`, }); }
  • Switch case in the callTool method that registers and dispatches execution of the gridstack_get_float tool to its handler.
    case "gridstack_get_float": return this.getFloat();
  • Tool registration in the getTools() array, including name, description, and empty input schema (no parameters required).
    { name: "gridstack_get_float", description: "Get current float state", inputSchema: { type: "object", properties: {}, }, },
  • Input schema definition: empty object properties, indicating the tool takes no input parameters.
    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