跳到正文
所有工具

create_omnifocus_task

OmniFocus · macOS

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

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

macOS

用途

在这台 Mac 上的 OmniFocus 中创建任务。需要 OmniFocus Pro(免费版会阻止自动化)。不带 `project` 时,任务进入收件箱。`project` 必须是现有项目的确切名称:如果没有同名项目,调用会以错误失败,而不是回退到收件箱,请先用 list_omnifocus_projects 检查名称。未传 confirm 时返回预览;传入 confirm=true 才会创建。返回任务 id。

必填输入

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

权限与确认

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

英文规范技术架构 — macOS
{
  "properties": {
    "confirm": {
      "description": "Must be true to create; called without it, returns a preview.",
      "type": "boolean"
    },
    "defer_date": {
      "description": "Defer/start date, ISO 8601 — the task stays hidden until then.",
      "type": "string"
    },
    "due_date": {
      "description": "Due date, ISO 8601 (YYYY-MM-DD or full timestamp).",
      "type": "string"
    },
    "flagged": {
      "default": "false",
      "description": "Create the task flagged.",
      "type": "boolean"
    },
    "name": {
      "description": "The task title.",
      "type": "string"
    },
    "note": {
      "description": "Longer note/body for the task.",
      "type": "string"
    },
    "project": {
      "description": "Project to file the task under (name). Omit for the inbox.",
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "type": "object"
}

文档示例

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

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