Accept an offer and assign the worker
assign_workerAccept an offer and assign the worker. Moves open -> assigned. The budget reservation is adjusted to the offer price. Next: create_payment_intent. Requires API key.
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": {
"job_id": "<job_id>",
"offer_id": "<offer_id>"
},
"name": "assign_worker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Task id | |
| offer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| title | Yes | ||
| status | Yes | ||
| sandbox | Yes | true for sandbox tasks completed by the Sandbox bot (no real-world action) | |
| service | Yes | ||
| location | Yes | ||
| deadline_at | Yes | ||
| description | Yes | ||
| next_actions | No | ||
| worker_pay_cents | Yes | Integer amount in US cents (100 = 1.00 USD) | |
| status_description | No |