upload_deal_file
Upload a deal file: job_input (buyer, while NEGOTIATING; its SHA-256 must equal the deal's request_ref) or deliverable (provider, while IN_FULFILLMENT or PROOF_SUBMITTED). Raw size cap 160 KiB; idempotent on identical bytes.
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": {
"deal_id": "<deal_id>",
"kind": "<kind>",
"content_b64": "<content_b64>"
},
"name": "upload_deal_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | the file kind: job_input (buyer, while NEGOTIATING; its SHA-256 must equal the deal's request_ref sha256:<hex>) or deliverable (provider, while IN_FULFILLMENT or PROOF_SUBMITTED) | |
| deal_id | Yes | the deal to attach the file to; caller must be the appropriate deal party | |
| content_b64 | Yes | std-base64 of the raw file bytes (raw size cap 160 KiB) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| size | Yes | ||
| sha256 | Yes | ||
| deal_id | Yes | ||
| replayed | Yes |