返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

open-application

通过名称打开或启动计算机上的应用程序。当用户要求打开、启动或运行如邮件、Finder、Safari、Chrome或任何其他已安装的macOS应用程序时,使用此技能。适用于内置和第三方应用程序。

person作者: jakexiaohubgithub

Skill: open-application

When to Use

Use this skill when the user asks to:

  • Open an application (Mail, Safari, Finder, etc.)
  • Launch a program
  • Start an app
  • Bring an application to the foreground
  • Open a specific macOS application by name

Input Parameters

| Parameter | Required | Description | Example | |-----------|----------|-------------|---------| | application_name | Yes | The name of the macOS application to open (e.g., Mail, Safari, Finder, Chrome, Slack) | Mail |

Procedure

  1. Extract the application name from the user's request
  2. Validate that the application name is clear and unambiguous (use ask_user if needed for clarification)
  3. Execute the open command: open -a {{APPLICATION_NAME}}
  4. Wait 2-3 seconds for the application to launch
  5. Confirm to the user that the application has been opened or brought to the foreground

Reference Commands

Commands from a successful execution (adapt to actual inputs):

open -a Mail

Replace {{PLACEHOLDER}} values with actual credentials from the key store.

Example

Example requests that trigger this skill:

control my computer to open mail