encrypt
Encrypt a ref's text content while keeping metadata visible. Returns a key_id; only authorized callers with the key can decrypt the payload.
Instructions
Encrypt a ref's text payload. Returns the ref with a key_id — only callers with the key can decrypt.
The ref metadata (provenance, classification, etc.) stays visible; only the text content is encrypted. Pass the key_id to specific agents or features that should be able to read the content.
Args: ref: A ref string like "run_id/agent_id", or a JSON object with a "ref" field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |