Use a secret without revealing it
use_secretSend an HTTPS request with a vault secret injected server-side, keeping the value hidden from the model and limiting calls to policy-approved URLs.
Instructions
Send an HTTPS request with a vault secret injected server-side. Write {{secret}} where the secret goes (URL, header value, or body); the value is substituted by the server and is never returned to you. Responses are masked. Only URLs allowlisted for that item/field in the server policy are permitted; the policy may also require human approval and limit uses or lifetime.
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": {
"id": "<id>",
"field": "<field>",
"request": "<request>"
},
"name": "use_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Vault item id (UUID) from list_item_metadata. | |
| field | Yes | password | username | totp | notes | sshPrivateKey | sshPublicKey | field:<custom field name> | |
| request | Yes |