show_moom_menu
Launch the Moom popup menu to manage macOS window layouts programmatically using the Moom MCP Server in Claude Desktop.
Instructions
Show the Moom popup menu
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:396-431 (handler)Handler function that displays the Moom popup menu by executing AppleScript to click the menu bar item of the Moom process.async showMoomMenu() { const script = ` tell application "System Events" tell process "Moom" try -- Click on the Moom menu bar icon click menu bar item 1 of menu bar 2 return "Moom menu is now visible" on error errMsg return "Error showing Moom menu: " & errMsg end try end tell end tell `; try { const result = await this.runAppleScript(script); return { content: [ { type: 'text', text: result, }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error: ${error.message}`, }, ], }; } }
- src/index.js:74-81 (schema)Tool schema definition in ListTools response, specifying no input parameters required.{ name: 'show_moom_menu', description: 'Show the Moom popup menu', inputSchema: { type: 'object', properties: {}, }, },
- src/index.js:215-216 (registration)Dispatch registration in the CallToolRequestSchema switch statement, routing calls to the handler.case 'show_moom_menu': return await this.showMoomMenu();