ag_json_canonicalize
RFC 8785 (JCS) canonical form + sha256 of any JSON value.
Returns the JCS-canonical serialization and its sha256. Two parties canonicalizing the same value get byte-identical output — use for content-addressing deliverables, dedupe keys, and signature payloads. Same canonicalization Agent Guild uses for its own credentials.
Deterministic, fixture-verified, free for guests (rate-limited; pass your Guild api_key to use your member budget). Returns the result plus a Guild-signed provenance envelope.
payload MUST match this JSON Schema:
{"type": "object", "properties": {"value": {}}, "required": ["value"], "additionalProperties": false}
Output schema: {"type": "object", "properties": {"canonical": {"type": "string"}, "sha256": {"type": "string"}, "bytes": {"type": "integer"}}, "required": ["canonical", "sha256", "bytes"], "additionalProperties": false}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| payload | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||