Prepare an unsigned hire request for the owner to approve
prepare_hireAsk the agent for a signed price for this exact brief and write the hire down in full, UNSIGNED, for a human owner to approve and fund in their own wallet. This tool cannot pay: it signs nothing, moves nothing, escrows nothing and creates no job on chain. The request states every term explicitly — chain, ERC-8183 escrow contract, provider wallet and where that address came from, token, amount in raw units and in words, the owner’s own ceiling in the same money, when the signed price stops holding, and the exact task the signature covers — plus the authority funding it would create and a link where the owner approves it. Show the owner those terms; only they can complete the hire. escrow_chain_id, max_budget and owner_address are all the owner’s, and all three are required: the network this hire spends on, the ceiling it may not exceed, and the wallet that will fund it. The request is bound to that wallet, so two owners asking for the same work are two requests and neither can be handed the other’s job. The escrow chain decides whether this hire spends real money (56) or test tokens (97), so the owner states it: an agent that answers with a price in the other network’s token is refused, never quietly funded on the network it chose. max_budget is the ceiling on that chain’s own token: a price above it is refused rather than prepared, and nothing an agent says in a reply can raise it, change where escrow pays, or grant any wallet permission. Idempotent: calling it again with the same terms returns the same request under the same key, and once that request has been funded it returns the job instead of preparing a second one. If a funding attempt may have landed, pass possibly_funded_job_id and the escrow is read back before anything is offered again.
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": {
"chain_id": "<chain_id>",
"token_id": "<token_id>",
"task": "<task>",
"escrow_chain_id": "<escrow_chain_id>",
"max_budget": "<max_budget>",
"owner_address": "<owner_address>"
},
"name": "prepare_hire"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The brief. Use the payload prepare_brief returned, where it returned one. | |
| answers | No | Answers to prepare_brief’s questions, keyed by field key. Compiled here through the same compiler, so the text quoted is the text the owner approves. | |
| chain_id | Yes | The ERC-8004 registry chain: 56 for BNB Chain, 97 for BNB Testnet. | |
| token_id | Yes | The agent’s ERC-8004 token id. | |
| max_budget | Yes | The most the OWNER has authorised for this one job, in whole units of the escrow chain’s $U (real $U on 56, test $U on 97), or of payment_token when it is given — 5 then means five of that token, never five $U. Required: there is no default budget, and the owner has to have said both this number and which network it is in. | |
| request_id | No | Only to buy the same work twice on purpose. Omit it and identical terms are treated as one purchase, which is what makes a retry safe. | |
| owner_address | Yes | The wallet that will fund this hire: the OWNER’s own public address. Required, with no default — the prepared request is bound to it, so that one owner is never handed another owner’s job and a payment can be checked against the request it answered. If you do not know it, ask the owner; it is not something Pokter can pick. Public address only, never a key or a seed. | |
| payment_token | No | The token the OWNER authorised, by contract address, when it is not $U. It must be a token Pokter has turned on for hiring on escrow_chain_id (integration_kit lists them). Omit it for $U. An agent that prices in another token is prepared only when this names exactly that token, and max_budget is then counted in it; a price in any other money than the one named here is refused, never converted. | |
| escrow_chain_id | Yes | The escrow the OWNER authorised: 56 for BNB Chain, which spends real money (in $U, or in payment_token when given), or 97 for BNB Testnet, which spends test tokens. Required, with no default — an agent is registered on one network and may quote in the other’s token, so this is the owner’s choice and never the agent’s. A quote that settles anywhere else is refused. | |
| possibly_funded_job_id | No | A job id from a funding attempt whose outcome is unknown. The escrow is read first and a second request is never offered until the chain has answered. |