Skip to main content
Glama

list_layouts

Retrieve saved window layouts for Moom on macOS to manage desktop organization and window positioning.

Instructions

List all saved Moom layouts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_layouts' tool. It executes an AppleScript command to list all Moom layouts, parses the result, and returns a JSON-formatted list or error message.
    async listLayouts() { const script = ` tell application "Moom" list of layouts end tell `; try { const result = await this.runAppleScript(script); const layouts = result.split(', ').map(name => name.trim()); return { content: [ { type: 'text', text: JSON.stringify({ layouts: layouts, count: layouts.length }, null, 2), }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error listing layouts: ${error.message}`, }, ], }; } }
  • src/index.js:128-135 (registration)
    Registration of the 'list_layouts' tool in the ListToolsRequestSchema response, including name, description, and empty input schema.
    { name: 'list_layouts', description: 'List all saved Moom layouts', inputSchema: { type: 'object', properties: {}, }, },
  • Input schema definition for the 'list_layouts' tool, which requires no parameters (empty properties).
    inputSchema: { type: 'object', properties: {}, },
  • src/index.js:217-218 (registration)
    Dispatch/registration in the CallToolRequestSchema switch statement that maps the tool name to its handler method.
    case 'list_layouts': return await this.listLayouts();

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/itrimble/moom-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server