所有工具

delete_note

备忘录 · macOS

效果: 删除. 状态: 受限可用.

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

macOS

用途

根据 ID 或精确标题从 Apple 备忘录中删除备忘录。与在应用中删除一样,该备忘录会进入“最近删除”,Apple 会在 30 天后将其清除;在此期间用户仍可从那里恢复。需要 confirm=true。结果经过验证:工具会在删除后重新读取该备忘录;如果它仍位于原处,则报告删除未验证。因此,此处返回成功即表示该备忘录确实已从 list_notes/search_notes/read_note 中消失。使用 list_notes 或 search_notes 查找 note_id。

必填输入

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

权限与确认

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

英文规范技术架构macOS
{
  "properties": {
    "confirm": {
      "type": "boolean"
    },
    "note_id": {
      "description": "The note's id, as list_notes/search_notes report it.",
      "type": "string"
    },
    "note_name": {
      "description": "Exact title, when you don't have the id. If several notes share it, the first match is deleted — prefer note_id.",
      "type": "string"
    }
  },
  "type": "object"
}

文档示例

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

{
  "confirm": false,
  "note_id": "demo-note-001"
}