所有工具

recipe_import

技能与流程 · macOS · Windows

效果: 写入. 状态: 受限可用.

“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。

macOS

用途

安装他人与你共享的 SKILL——传入对方 recipe_export 返回的 skill_token(或原始配方清单 JSON)。将其保存到此 Mac,以便 recipe_run 使用。安全性:导入操作只会存储技能;稍后运行时,任何会更改状态的步骤(发送/写入/删除)都会先显示预览,并需要确认。如果已存在同名技能,导入内容会以不冲突的名称保存。返回 {name, imported}。

必填输入

此平台的架构未声明必填输入,但仍可能存在可选选择器或运行时要求。

权限与确认

架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。

英文规范技术架构macOS
{
  "properties": {
    "skill": {
      "description": "A skill_token from recipe_export, or a raw recipe manifest JSON string.",
      "type": "string"
    },
    "skill_token": {
      "description": "Alias for `skill` — the exact field name recipe_export returns.",
      "type": "string"
    }
  },
  "required": [],
  "type": "object"
}

文档示例

recipe_import 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "skill": "{\"name\":\"Demo morning brief\",\"description\":\"Read the local date and time.\",\"steps\":[{\"tool\":\"get_datetime\",\"args\":{}}]}"
}

Windows

用途

安装他人与你共享的 SKILL——传入对方 recipe_export 返回的 skill_token(或原始配方清单 JSON)。将其保存到此计算机,以便 recipe_run 使用。安全性:导入操作只会存储技能;稍后运行时,任何会更改状态的步骤(发送/写入/删除)都会先显示预览,并需要确认。如果已存在同名技能,导入内容会以不冲突的名称保存。返回 {name, imported}。

必填输入

此平台的架构未声明必填输入,但仍可能存在可选选择器或运行时要求。

权限与确认

架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。

英文规范技术架构Windows
{
  "properties": {
    "skill": {
      "description": "A skill_token from recipe_export, or a raw recipe manifest JSON string.",
      "type": "string"
    },
    "skill_token": {
      "description": "Alias for `skill` — the exact field name recipe_export returns.",
      "type": "string"
    }
  },
  "required": [],
  "type": "object"
}

文档示例

recipe_import 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "skill": "{\"name\":\"Demo morning brief\",\"description\":\"Read the local date and time.\",\"steps\":[{\"tool\":\"get_datetime\",\"args\":{}}]}"
}