Claim Task
claim_taskClaim a pending task to secure exclusive ownership before starting work. If rejected, another agent already owns it, so abandon and avoid duplicate effort.
Instructions
认领一个 Hook 分发的任务(多 Agent 防撞车的排他锁定)。
何时必须调用:
收到任务通知、评估后确认需要响应时,开发之前先认领
认领成功才开工;返回 rejected 说明他人已认领,直接放弃
何时不需要:
评估后确认无需变更时(不认领,让任务自然超时或被他人处理)
参数:
task_id: 任务 id(来自 get_pending_tasks)
agent_id: 你的 Agent 角色 id(稳定命名,与订阅关系关联)
返回: {status: claimed|rejected, task_id, ...}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| agent_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||