run_with_secret
Requests passwords, tokens, or API keys from the user via a one-time encrypted link and runs exactly one command with them as environment variables, masking values in output.
Instructions
Use this whenever a single command needs a password, token, API key or other secret from the user, for example "connect to the database with my password" or "deploy with my API token". Never ask the user to type or paste a secret into the chat. Asks the user for one or more secrets and runs exactly one command with them as environment variables. The user sees the command before entering anything, and only this command can receive the values. 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, runs the command and returns its exit code and its output with every value masked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the command | |
| names | No | Names of the values to ask for, for example ["DB_PASSWORD"] | |
| command | No | The command and its arguments, for example ["psql", "-h", "db.example.com"] | |
| request_id | No | The id returned by the first call | |
| ttl_seconds | No |