launch_application
Launch applications to configure Moom window layouts on macOS using natural language commands in Claude Desktop.
Instructions
Launch a specified application for workflow setup
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appName | Yes | Name of the application to launch |
Implementation Reference
- src/index.js:544-563 (handler)The main handler function for the 'launch_application' tool. It executes an AppleScript command to activate (launch if not running) the specified application and returns success or error message.async launchApplication(appName) { const script = `tell application "${appName}" to activate`; try { await this.runAppleScript(script); return { content: [{ type: 'text', text: `Successfully launched ${appName}` }] }; } catch (error) { return { content: [{ type: 'text', text: `Error launching ${appName}: ${error.message}` }] }; } }
- src/index.js:137-148 (schema)Input schema definition for the 'launch_application' tool, specifying that it requires an 'appName' string parameter.name: 'launch_application', description: 'Launch a specified application for workflow setup', inputSchema: { type: 'object', properties: { appName: { type: 'string', description: 'Name of the application to launch', }, }, required: ['appName'], },
- src/index.js:225-226 (registration)Registration and dispatch of the 'launch_application' tool in the CallToolRequestHandler switch statement, routing calls to the handler function.case 'launch_application': return await this.launchApplication(args.appName);