task_list
Filter tasks by status, search, or IDs, sort by priority, created, or status, paginate via limit/offset, and batch reassign/fail/supersede atomically. No params returns all.
Instructions
List tasks. Filters: status / search(标题+描述+id 模糊) / task_ids(限定集合,批量查询). 排序: sort=priority(按优先级 high>medium>low)|created(创建时间)|status(状态分组). 分页: limit/offset. 批量操作: batch_action=reassign|fail|supersede 配合 task_ids + batch_agent/batch_reason 一次性对多个任务施效(原子). 不带参数=返回全部(兼容旧行为).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | 排序键:priority(高→低,默认)/created(新→旧)/status(分组) | |
| limit | No | 最多返回条数(分页) | |
| offset | No | 跳过前 N 条(分页,默认 0) | |
| search | No | 模糊匹配 title/description/id(不区分大小写) | |
| status | No | ||
| task_ids | No | 限定返回这些 task_id(批量查询/批量操作的目标集) | |
| batch_agent | No | batch_action=reassign 时的目标 agent | |
| batch_action | No | 批量操作:对 task_ids 集合一次性 reassign(改 assigned_to)/fail(标失败)/supersede(标记替代)。需配合 task_ids | |
| batch_reason | No | batch_action=fail/supersede 时的原因 |