assign_open_loop
Claim an unassigned loop for an owner. First claim wins, so concurrent agents avoid conflicts by locking the loop before work.
Instructions
Claim an open loop for an owner — FIRST CLAIM WINS.
The foreman and every agent must claim a loop BEFORE touching files. A loop is claimable while owner is unset; the first claim wins. Re-claiming by the same owner is a no-op. Claiming someone else's loop raises an error and returns the current owner in the message.
Returns
dict with keys: id, status, owner, lane.
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": {
"loop_id": "<loop_id>",
"owner": "<owner>"
},
"name": "assign_open_loop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lane | No | ||
| owner | Yes | ||
| loop_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||