create_tasks
Batch-create multiple OmniPlan tasks in a single call to reduce overhead. Specify each task's title, dates, effort, and optional parent references.
Instructions
Create multiple tasks in a single JXA call.
Performance: each evaluateJavascript round-trip is ~1-3s of
osascript startup. Building 50 tasks via 50 calls to create_task
is ~50-150s. This tool does the whole batch in one round-trip.
Args:
tasks: list of task specs. Each spec is a dict with the same
fields create_task accepts:
title (required), parent_id, task_type, note,
manual_start_date, manual_end_date, effort_seconds,
min_effort_seconds, expected_effort_seconds,
max_effort_seconds.
Plus one extra:
parent_index — int, optional. References another task in
the same batch by zero-based position. Must be less than
the task's own index. At most one of parent_id and
parent_index may be set; if neither is set, the task
is added under the document root.
Returns:
JSON array of created-task shapes — same fields as create_task
returns, in the order the inputs were given.
Raises ValueError on invalid parent_index references or unknown parent_id, before any task is created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |