打开技能
使用 macOS 的 open 命令打开文件、URL 或应用程序。
示例
打开 URL:
json
{
"name": "open",
"parameters": {
"target": "https://google.com",
"type": "url"
}
}
打开文件:
json
{
"name": "open",
"parameters": {
"target": "/Users/xxx/Documents/report.pdf",
"type": "file"
}
}
打开应用:
json
{
"name": "open",
"parameters": {
"target": "Safari",
"type": "app"
}
}
使用指定应用打开:
json
{
"name": "open",
"parameters": {
"target": "/path/to/document.txt",
"app": "TextEdit"
}
}