accept_task
Claim a delegated task before working on it to prevent duplicate work by two agents. First acceptance wins, ensuring only one agent proceeds.
Instructions
Claim a delegated task before working on it (first accept wins — prevents two agents doing the same work).
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": {
"taskId": "<taskId>",
"agentId": "<agentId>"
},
"name": "accept_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | ||
| agentId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| task | Yes | ||
| reason | No |