跳到正文
所有工具

todo_complete_task

提醒事项与 Microsoft To Do · macOS · Windows

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

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

macOS

用途

将 Microsoft To Do 任务标记为已完成。它通过 Apple 提醒事项工作,当 Microsoft 账户被添加到 Reminders 时,提醒事项会与 To Do 同步,因此更改会在下次同步后出现在 To Do 中。优先使用来自 todo_list_tasks 的 task_id。若改用 `title`,它会完成标题包含该文本(不区分大小写)的那一个未完成任务;如果有多个匹配,则一个都不完成,并列出它们及其 task_id。不带 `list` 时,它会搜索每个 Reminders 列表,而不只是 To Do 的列表。未传 confirm 时返回预览;传入 confirm=true 才会完成。

必填输入

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

权限与确认

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

英文规范技术架构 — macOS
{
  "properties": {
    "confirm": {
      "description": "Must be true to complete",
      "type": "boolean"
    },
    "list": {
      "description": "List name to narrow search by title (optional)",
      "type": "string"
    },
    "task_id": {
      "description": "Task ID from todo_list_tasks",
      "type": "string"
    },
    "title": {
      "description": "Task title (partial match, alternative to task_id)",
      "type": "string"
    }
  },
  "required": [],
  "type": "object"
}

文档示例

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

{
  "confirm": false,
  "title": "Planning meeting"
}

Windows

用途

通过 Outlook 桌面应用,在 Microsoft To Do / Outlook Tasks 中将一个任务标记为已完成;仅限 Windows。不带 confirm=true 时不会有任何更改:调用返回一份预览,回显主题和列表,但不会查找该任务,因此不会说明该任务是否存在。带 confirm=true 时,它会查找主题等于 `subject` 的任务(不支持部分匹配,也没有任务 ID),并将其设为 100% 完成。不带 `list` 时,它只在根 Tasks 文件夹中查找,不会查找其子文件夹;带 `list`(来自 todo_list_tasks 的名称或完整路径)时,只在该处查找,未知或匹配多个文件夹的列表会被拒绝并返回错误。当该文件夹中有多个未完成任务主题相同时,一个都不会被完成:调用失败并列出候选任务,每个都带有 task_id;使用该 task_id 再次调用即可完成其中一个。找不到任务时返回 'not found',Outlook 的回复若未确认更改,则为错误,绝不是成功。任务不会被删除;此服务器没有重新打开它的工具。

必填输入

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

权限与确认

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

英文规范技术架构 — Windows
{
  "properties": {
    "confirm": {
      "description": "Must be true to complete",
      "type": "boolean"
    },
    "list": {
      "description": "Task list or folder to complete the task in, by name or full path as reported by todo_list_tasks (default: only the root Tasks folder). Disambiguates when the same subject exists in more than one list. The name the cloud catalog (Mac) advertises.",
      "type": "string"
    },
    "subject": {
      "description": "Task subject (exact match)",
      "type": "string"
    },
    "task_id": {
      "description": "A task_id listed by this tool when several open tasks share the subject. Completes exactly that task; subject and list are not needed.",
      "type": "string"
    },
    "title": {
      "description": "Alias for `subject` — the name the cloud catalog (Mac) advertises. Exact match here, unlike the Mac tool's partial match.",
      "type": "string"
    }
  },
  "type": "object"
}

文档示例

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

{
  "confirm": false,
  "title": "Planning meeting"
}