跳到正文
所有工具

delete_note

备忘录 · macOS

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

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

macOS

用途

按 ID 或确切标题从 Apple 备忘录中删除备忘录。与在应用中删除一样,备忘录会进入 "Recently Deleted",Apple 会在 30 天后清除——用户仍可在那里恢复。已经在 Recently Deleted 中的备忘录会被拒绝(note_already_deleted):再次删除会将其永久抹除。在 LMCP 无法检查这一点的 Mac 上(没有完全磁盘访问权限,且之前没有删除过可据以得知该文件夹的备忘录),预览会带有警告,结果会显示 trash_check: not_verified。需要 confirm=true。结果经过验证:删除后工具会重新读取该备忘录,如果它仍在原处,则报告删除未得到验证,因此此处的成功意味着该备忘录确实已从 list_notes/search_notes/read_note 中消失。使用 list_notes 或 search_notes 查找 note_id。

必填输入

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

权限与确认

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

英文规范技术架构 — macOS
{
  "properties": {
    "confirm": {
      "description": "Set to true to actually delete. Defaults to false, which returns a preview and deletes nothing.",
      "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"
}