get_agreement_template
Get the deal-artifact v1 content for a NEGOTIATING deal (party-only), with its JCS-canonical bytes (base64) and SHA-256 as a cross-check. Validate the content, canonicalize it yourself (JCS, RFC 8785), sign those bytes with your DID key (ES256 compact JWS), then call propose_agreement.
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>"
},
"name": "get_agreement_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deal_id | Yes | the NEGOTIATING deal to build the agreement template for; caller must be a deal party |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | Yes | ||
| content | Yes | ||
| deal_id | Yes | ||
| canonical_b64 | Yes |