Get Pending Tasks
get_pending_tasksFetch pending tasks from the queue at the start of each execution loop to discover new work. Evaluate impact, claim, and begin processing.
Instructions
拉取任务队列(被动触达的 pull 端)。harness 执行循环中每轮调用。
何时必须调用:
Agent 执行循环的每轮迭代开始时(检查是否有 Hook 分发给你的任务)
何时不需要:
正在处理一个任务的中间(先完成当前任务)
参数:
status: pending(待认领)/ claimed(已认领)/ completed
返回: 任务列表 [{task_id, source_node, message, subscribers, status, ...}] 对订阅了你的任务: 先 query_impact 评估 → 需响应则 claim_task 后开工
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | pending |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |