project_template_instantiate
Spawn a new project from a saved template, replacing placeholders with supplied parameters and shifting due/defer dates relative to an anchor date.
Instructions
Spawn a new project from a saved template under the Templates folder. Substitutes {{name}} placeholders with the supplied parameters and shifts @due / @defer dates relative to the optional dueDate anchor (the earliest @due in the template). Do NOT use to copy a one-off project — prefer task_duplicate. Returns { projectId, taskCount, importWarnings }. Side effects: writes a new project + tasks; sets meta.syncPending = true. Example: { templateName: "Client onboarding", parameters: { client: "Acme" }, dueDate: "2026-06-04" }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dueDate | No | Anchor for relative-date shifting. The earliest @due in the template becomes this date; every other @due/@defer shifts by the same delta. | |
| parameters | No | Map of placeholder name → substitution value. | |
| templateName | Yes | Saved template to instantiate. | |
| targetFolderId | No | Folder to create the new project in. Defaults to the library root. |