Skip to main content
Glama

gridstack_remove_all

Clear all widgets from the grid layout to reset dashboard content or prepare for new widget arrangements. Optionally removes DOM elements for complete cleanup.

Instructions

Remove all widgets from the grid

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
removeDOMNoRemove DOM elements

Implementation Reference

  • Handler function that executes the gridstack_remove_all tool by generating JavaScript code to invoke grid.removeAll(removeDOM) using GridStackUtils.
    private async removeAll(params: any): Promise<string> { const { removeDOM = true } = params; return this.utils.generateGridStackCode("removeAll", { removeDOM, code: `grid.removeAll(${removeDOM});`, }); }
  • Input schema definition for the gridstack_remove_all tool, specifying optional removeDOM boolean parameter.
    { name: "gridstack_remove_all", description: "Remove all widgets from the grid", inputSchema: { type: "object", properties: { removeDOM: { type: "boolean", description: "Remove DOM elements", default: true, }, }, }, },
  • Registration in the central callTool switch statement that dispatches gridstack_remove_all calls to the removeAll handler.
    case "gridstack_remove_all": return this.removeAll(args);

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