createTask
Initiate task workflows with a hierarchical structure. Define tasks by name, optional description, and parent ID. Specify position using insertIndex. Must call startTask
and completeTask
to process and finalize tasks.
Instructions
Create a new task with optional parent and index positioning.
This tool initiates a new workflow for handling user requests. The workflow is as follows:
- Create tasks with the provided name and optional description. Tasks are organized in a hierarchical structure where subtasks can be created by specifying parentId.
- Tasks are ordered by their position in the parent's tasks array. Use insertIndex to specify position (defaults to end).
- After task creation, you MUST call the
startTask
tool to begin processing the task. - When the task is completed, call the
completeTask
tool with the task ID and resolution details. - If the following task is assigned, execute it by calling the
startTask
tool again. - Repeat this cycle until all tasks are completed.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
description | No | Task description (optional) | |
insertIndex | No | Index position within parent's tasks array (optional, defaults to end of array) | |
name | Yes | Task name (required) | |
parentId | No | Parent task ID for hierarchical organization (optional) | |
tasks | No | Array of subtasks to create simultaneously (optional) |