Skip to main content
Glama

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
NameRequiredDescriptionDefault
appNameYesName of the application to launch

Implementation Reference

  • 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}` }] }; } }
  • 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);

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