Request a secret from the user
request_secretCollects an API key or other secret via a native password dialog or local browser page, stores it directly in .env, the OS keychain, or 1Password, and returns only storage status.
Instructions
Ask the user for an API key or other secret via a native password dialog (pinentry, zenity, kdialog, or a macOS dialog), falling back to a local browser page. The value is stored directly to the chosen target (.env in the working directory, the OS keychain, or 1Password) and never enters the conversation. Afterwards, reference it indirectly (e.g. process.env.NAME); never ask the user to paste secrets in chat.
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": {
"name": "<name>"
},
"name": "request_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| target | No | env | |
| description | No |