Get Secret (Passwords Masked)
get_secretRetrieve a secret's fields with password values masked, or fetch summary metadata to inspect access and approval requirements without exposing credentials.
Instructions
Retrieve a secret's fields, with password-type values masked.
Values of fields that the secret template marks as passwords are
replaced with ******** and listed under maskedFields. Use
summary=True for metadata only (name, folder, template, approval
and checkout requirements). To put a credential to work without
exposing it, use get_secret_environment_variable. Showing a masked
value needs reveal_secret_field, which is only available when the
server has plaintext reveal enabled.
Parameters
id:
Numeric secret identifier.
summary:
When True return only the summary information.
Returns
dict
JSON representation of the secret on success or an error key.
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>"
},
"name": "get_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| summary | No |