launch_application
Initiate application startup for workflow configuration using Moom MCP Server. Specify the app name to launch it programmatically on macOS, optimizing window management and productivity.
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 constructs an AppleScript to activate (launch if not running) the specified application using osascript, handles errors, and returns a structured response with 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:136-149 (schema)The JSON schema definition for the 'launch_application' tool, specifying the required 'appName' string parameter. This is returned in the ListTools response.{ 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)The dispatch case in the CallToolRequestSchema handler that routes calls to the 'launch_application' tool to its implementation method.case 'launch_application': return await this.launchApplication(args.appName);