create_dev_task
Create a development task with title, type, priority, and scope. Optionally specify due date, acceptance criteria, constraints, context, dependencies, and agent execution flag. Tasks start as pending evaluation.
Instructions
Create a new dev-task. New tasks start at status '待评估'.
返回体里包含 slug (如 "task-1"),后续对话 / 看板 UI / MCP tool 引用 该任务时直接用 slug,比 ObjectID 可读得多。
Args: title: Task title (required). task_type: One of '问题', '功能需求', '优化', '技术债'. priority: One of 'P0 紧急', 'P1 高', 'P2 中', 'P3 低'. scope: Task scope in "<层>-<技术>" format (required). Examples: '前端-React', '后端-Go', 'AI-LangChain', 'Docs-用户手册', '通用'. Free-form string — not a closed enum. description: Short description (optional). detail: Long-form detail (optional). due_date: ISO-8601 datetime string, e.g. '2026-09-01T00:00:00'. Pass whatever your JSON client gives; the backend parses RFC-3339. acceptance_criteria: Conditions that must be met for this task to be considered done. Agent uses these as a self-check before resolve. constraints: Hard boundaries — files not to touch, tech stack requirements, etc. Agent treats these as non-negotiable. context_pointers: Paths to relevant code / docs / ADRs, e.g. 'internal/auth/, docs/adr/0003'. Saves agent a file-discovery pass. for_agent: When True, mark this task as ready for agent execution. Default False (human task). blocked_by: List of task IDs that must be done before this one. Pass [] when no dependencies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | ||
| title | Yes | ||
| detail | No | ||
| due_date | No | ||
| priority | Yes | ||
| for_agent | No | ||
| task_type | Yes | ||
| blocked_by | No | ||
| constraints | No | ||
| description | No | ||
| context_pointers | No | ||
| acceptance_criteria | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |