import_taskpaper
Import tasks from TaskPaper text into OmniFocus. Parses tags, due dates, and project headings to create tasks with subtasks.
Instructions
Import tasks from TaskPaper text into OmniFocus. Parses '- Task name @tag @due(2026-01-15) @defer(2026-01-10) @flagged' lines. Indented subtasks become children of the nearest parent task. Project headings ('Project name:') map to existing OF projects by name — unrecognised headings fall back to inbox (warning emitted). Unknown @tags are created automatically. Do NOT use to export data; prefer export_taskpaper for that. Returns { tasks: [{ id, name }], warnings: string[] } — tasks pairs each new id with its display name (resolved via a single getTasksMany batch, no N+1) so the agent can confirm what landed without a follow-up read. Orphan ids (rare; deleted between import and lookup) are dropped from the array. Writes to OmniFocus; call sync_trigger to propagate changes to other devices. Example: import_taskpaper({ text: "- Buy milk @errands\n- Call dentist @due(2026-05-01)" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | TaskPaper-formatted text to import. Each '- Task name' line becomes a task. | |
| targetProjectId | No | When set, all top-level tasks are created in this project regardless of project headings in the text. Get the ID from project_list. |