跳到正文
所有工具

set_always_allowed

诊断与系统 · macOS · Windows

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

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

macOS

用途

为 LMCP 原本会先确认的某一类操作(发送邮件或消息、永久删除、终端命令……)开启或关闭«无需询问即允许»。仅当用户在本次对话中提出要求时才调用:当用户对该类操作说“不要再问我”时用 allowed: true,当用户希望再次被询问时用 allowed: false。开启时,需在用户批准后传入 confirm: true;不传时,答复会说明将发生什么更改,且不会有任何更改。关闭则立即生效。lmcp_state 会列出当前已允许的内容(always_allowed)。你所在组织的 IT 策略可以禁止开启。

必填输入

输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。

权限与确认

架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。

英文规范技术架构 — macOS
{
  "properties": {
    "action": {
      "description": "The kind of action: send_email (send_email, reply_email, Microsoft 365, Proton, Thunderbird), send_imessage, send_teams, reply_whatsapp, reply_telegram, send_zalo, send_servicenow, send_report, publish_recipe, submit_web_form, run_web_script, run_command, run_shortcut, and the permanent deletes.",
      "enum": [
        "delete_event_permanent",
        "delete_file_permanent",
        "delete_message_permanent",
        "delete_recipe_permanent",
        "delete_reminder_permanent",
        "delete_web_session_permanent",
        "publish_recipe",
        "reply_telegram",
        "reply_whatsapp",
        "run_command",
        "run_shortcut",
        "run_web_script",
        "send_agent",
        "send_email",
        "send_imessage",
        "send_report",
        "send_servicenow",
        "send_teams",
        "send_zalo",
        "submit_web_form"
      ],
      "type": "string"
    },
    "allowed": {
      "description": "true: do it without asking from now on. false: ask again.",
      "type": "boolean"
    },
    "confirm": {
      "description": "true after the person approved turning it on. Not needed to turn one off.",
      "type": "boolean"
    }
  },
  "required": [
    "action",
    "allowed"
  ],
  "type": "object"
}

文档示例

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

{
  "action": "send_email",
  "allowed": false,
  "confirm": false
}

Windows

用途

为某一类操作开启或关闭«不再询问»:allowed 为 true 时,LMCP 会在这台电脑上的任何 AI 应用中,不经预览和确认步骤直接执行该操作(例如 send_email:发送邮件);allowed 为 false 时则再次询问。开启是用户本人的决定:不带 confirm=true 的调用不会更改任何内容,并返回将被允许的内容;请先询问用户,再以 confirm=true 再次调用。关闭则在首次调用时生效。组织的策略可以禁止开启。用户可在 LMCP 的图标 → More actions → Allowed without asking 中查看并撤销它们。

必填输入

输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。

权限与确认

架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。

英文规范技术架构 — Windows
{
  "properties": {
    "action": {
      "description": "The action family, as the preview of a tool that asks names it.",
      "enum": [
        "send_email",
        "send_teams",
        "reply_whatsapp",
        "reply_telegram",
        "send_servicenow",
        "send_report",
        "send_agent",
        "submit_web_form",
        "run_web_script",
        "run_command",
        "delete_message_permanent",
        "delete_file_permanent",
        "delete_recipe_permanent",
        "delete_web_session_permanent"
      ],
      "type": "string"
    },
    "allowed": {
      "description": "true: do it without asking; false: ask again.",
      "type": "boolean"
    },
    "confirm": {
      "description": "Required (true) to turn a family ON, after the person agreed. Without it, returns a preview. Not needed to turn one off.",
      "type": "boolean"
    }
  },
  "required": [
    "action",
    "allowed"
  ],
  "type": "object"
}

文档示例

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

{
  "action": "send_email",
  "allowed": false,
  "confirm": false
}