Import Tasks
task_importImport multiple tasks at once from a JSON array. Supports descriptions, projects, priorities, and dependencies for atomic data migration and bulk creation.
Instructions
Bulk-create tasks from a JSON array. Each object must have a 'description' field; all other fields (project, tags, priority, due, status, depends, recur) are optional. Tasks are created atomically in a single batch. Returns the count of imported tasks. Use this for migrating data or creating multiple tasks at once. For creating a single task interactively, use task_add instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | Yes | JSON array of task objects. Required field: 'description'. Optional: 'project', 'tags' (string[]), 'priority' (H/M/L), 'due', 'status', 'depends' (UUID[]), 'recur', 'agent', 'uuid' (to set explicit ID). Example: '[{"description":"My task","project":"foo","priority":"H"}]' |