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.
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": {
"ref": "<ref>"
},
"name": "encrypt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |