Skip to main content
Glama

get_running_applications

Retrieve a list of all currently running applications on macOS to monitor system activity or manage processes.

Instructions

Получает список всех запущенных приложений на Mac

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • TypeScript handler for get_running_applications tool. Executes AppleScript via osascript to retrieve names of running foreground application processes, formats them into a list, and returns as MCP content response.
    private async getRunningApplications() { try { // Получаем список запущенных приложений через AppleScript const { stdout } = await execAsync( `osascript -e 'tell application "System Events" to get name of every application process whose background only is false'` ); const apps = stdout .trim() .split(", ") .map((app) => app.trim()) .filter((app) => app.length > 0); return { content: [ { type: "text", text: `Запущенные приложения:\n${apps.join("\n")}`, }, ], }; } catch (error) { throw new Error( `Не удалось получить список приложений: ${error instanceof Error ? error.message : String(error)}` ); } }
  • Python handler for get_running_applications tool. Executes AppleScript via osascript using exec_command helper to get running foreground apps, parses output, and returns formatted list string.
    def get_running_applications() -> str: """Gets list of running applications""" apple_script = 'tell application "System Events" to get name of every application process whose background only is false' stdout, stderr = exec_command(f'osascript -e \'{apple_script}\'') if stderr: raise Exception(f"Failed to get list of applications: {stderr}") apps = [app.strip() for app in stdout.strip().split(", ") if app.strip()] return "Running applications:\n" + "\n".join(apps)
  • TypeScript input schema definition for the get_running_applications tool in the tools list response. No input parameters required.
    name: "get_running_applications", description: "Получает список всех запущенных приложений на Mac", inputSchema: { type: "object", properties: {}, }, },
  • Python input schema definition for the get_running_applications tool returned by get_tools() function.
    "name": "get_running_applications", "description": "Gets list of all running applications on Mac", "inputSchema": { "type": "object", "properties": {}, }, },
  • src/index.ts:311-312 (registration)
    TypeScript tool dispatcher/registration in the CallToolRequestSchema handler switch statement, which calls the getRunningApplications handler.
    case "get_running_applications": return await this.getRunningApplications();

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