tc_switch
Switches the active task to a specified task ID, rejecting tasks marked as closed to keep workflow state valid.
Instructions
切换活动任务。closed 任务会被拒绝。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"root": "<root>",
"task_id": "<task_id>"
},
"name": "tc_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | 工作区根目录 | |
| task_id | Yes | 要激活的任务 id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | open | |
| task_id | Yes | 任务 id。省略时使用当前活动任务 |