passkey_request_secret
Prompts the user through a native OS password dialog to save or rotate secrets directly into the system keychain, returning only field names and status—never secret values.
Instructions
Prompt the human user via an out-of-band native OS hidden dialog to save or rotate secrets.
Opens a secure macOS/Linux password dialog directly on the user's desktop,
stores the entered value(s) straight into the OS keychain, and returns only
field names and status — secret values NEVER enter AI context or tool output.
Automatically skips fields that already exist unless overwrite=True or
an error/expiry reason is provided (which triggers a native rotation
notification + Passkey - Rotate Secret prompt and stamps last_rotated).
Args: entry_name: Keychain entry name to create or update (e.g., "stripe_dev") fields: Environment variable / field names to capture (max 10) policy: Optional access policy ('allow', 'session', or 'prompt'; defaults to default-policy; policy relaxations below an existing entry's policy or default-policy are rejected) hint: Optional short hint shown in the dialog (e.g., where to find the key) reason: Optional error/expiry reason (e.g., "401 Unauthorized: token expired") timeout: Seconds to wait before timing out (5-300, default: 120) overwrite: Re-prompt even if requested fields already exist
Returns: Secret-free dictionary with ok, status ('created'|'updated'|'already_exists'), entry, fields_saved, fields_present, policy, and optional rotated/last_rotated.
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": {
"entry_name": "<entry_name>",
"fields": "<fields>"
},
"name": "passkey_request_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| fields | Yes | ||
| policy | No | ||
| reason | No | ||
| timeout | No | ||
| overwrite | No | ||
| entry_name | Yes |