show_moom_menu
Display the Moom popup menu to access and manage window layout controls on macOS through Claude Desktop.
Instructions
Show the Moom popup menu
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "show_moom_menu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:396-431 (handler)The main execution logic for the 'show_moom_menu' tool. It runs an AppleScript that tells System Events to click the Moom menu bar item (menu bar item 1 of menu bar 2), displaying the popup menu. Returns a markdown content block with success or error message.
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 (registration)Tool registration in the ListToolsRequestHandler response. Defines the tool name, description, and input schema (empty object since no parameters required).
{ name: 'show_moom_menu', description: 'Show the Moom popup menu', inputSchema: { type: 'object', properties: {}, }, }, - src/index.js:215-216 (handler)Dispatch logic in the CallToolRequestHandler switch statement that routes 'show_moom_menu' tool calls to the showMoomMenu() handler method.
case 'show_moom_menu': return await this.showMoomMenu();