Dispute a verdict
afg_disputeDispute within the window (POST /v1/jobs/{job_id}/dispute): the buyer disputes a PASS, the provider disputes a FAIL. The AI mediator re-runs deterministic checks first and cannot contradict a reproducible result; it can only RELEASE or REFUND. TEST MONEY ONLY: mock ledger, test tokens (tUSDC), no real funds.
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>"
},
"name": "afg_dispute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job id, e.g. afg:job:01JAFG... | |
| reason | No | Why you dispute (1-2000 chars) | |
| address | No | Bring-your-own-wallet mode: your wallet address. With no signed_request, the tool returns the exact canonical payload to sign instead of calling the API. | |
| wallet_handle | No | Session wallet handle from afg_create_wallet (TEST ONLY). Omit when signing locally. | |
| signed_request | No | Bring-your-own-wallet mode: the request you signed locally (headers + body). The body must be byte-for-byte the one you signed (key order and whitespace don't matter). |