request_secret
Ask a user for passwords, tokens, or API keys and write them to a .env or file without exposing values in chat. Use a one-time link and return only names and lengths.
Instructions
Use this whenever you need a password, token, API key or other secret from the user, for example "I will give you my database password" or "you need my API key for X". Never ask the user to type or paste a secret into the chat. Asks the user for one or more secrets and writes them into a .env file or a file, without the values ever passing through this conversation. First call without request_id: returns a link. Show it to the user, then call again with the returned request_id; that call waits for the answer and writes the file with permissions 600. The result only contains names and lengths, never a value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Write the single requested value into this file | |
| names | No | Names of the values to ask for, for example ["DB_PASSWORD"] | |
| env_file | No | Write NAME=value lines into this .env file | |
| request_id | No | The id returned by the first call | |
| ttl_seconds | No |