op_check_ref
Validate an op:// secret reference and retrieve non-secret metadata to confirm it resolves, without exposing the secret value.
Instructions
Validate an op://vault/item/field secret reference and return only non-secret metadata (vault name, item title, field label, field type) confirming it resolves — the field VALUE is never returned. Use this to check a reference is correct before using it with op_run; do not use password_read/item_get with reveal just to check a reference exists.
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": {
"secretReference": "<secretReference>"
},
"name": "op_check_ref"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secretReference | Yes | Secret reference to validate, in op://vault/item/field format. |