Skip to main content
Glama

open_application

Launch macOS applications by name using this MCP server tool. Open apps like Safari, Finder, or Calculator through voice or text commands.

Instructions

Открывает приложение на Mac по имени. Примеры: 'Safari', 'Finder', 'TextEdit', 'Calculator'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appNameYesИмя приложения для запуска (например, 'Safari', 'Calculator')

Implementation Reference

  • Handler function that implements the 'open_application' tool logic by executing the macOS 'open -a' command to launch the specified application.
    private async openApplication(appName: string) { try { // Используем команду open для запуска приложения await execAsync(`open -a "${appName}"`); return { content: [ { type: "text", text: `Приложение "${appName}" успешно запущено`, }, ], }; } catch (error) { throw new Error( `Не удалось запустить приложение "${appName}": ${error instanceof Error ? error.message : String(error)}` ); } }
  • Handler function that implements the 'open_application' tool by running the shell command 'open -a "app_name"'.
    def open_application(app_name: str) -> str: """Opens application by name""" stdout, stderr = exec_command(f'open -a "{app_name}"') if stderr: raise Exception(f'Failed to launch application "{app_name}": {stderr}') return f'Application "{app_name}" successfully launched'
  • src/index.ts:57-70 (registration)
    Registration of the 'open_application' tool in the tools list, including description and input schema definition.
    name: "open_application", description: "Открывает приложение на Mac по имени. Примеры: 'Safari', 'Finder', 'TextEdit', 'Calculator'", inputSchema: { type: "object", properties: { appName: { type: "string", description: "Имя приложения для запуска (например, 'Safari', 'Calculator')", }, }, required: ["appName"], }, },
  • src/server.py:46-58 (registration)
    Registration entry for 'open_application' tool with schema in get_tools() function.
    "name": "open_application", "description": "Opens an application on Mac by name. Examples: 'Safari', 'Finder', 'TextEdit', 'Calculator'", "inputSchema": { "type": "object", "properties": { "appName": { "type": "string", "description": "Application name to launch (e.g., 'Safari', 'Calculator')", }, }, "required": ["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/TrueOleg/MCP-expirements'

If you have feedback or need assistance with the MCP directory API, please join our Discord server