Save a secret
set_secretSaves an API key or password as an app secret so deployed TeamOnly apps can read it at runtime with ctx.secrets.get(NAME). Ask the user for the value; never hardcode it.
Instructions
Saves a secret (API key, password) for the deployed app. The app reads it with ctx.secrets.get(NAME). Names are UPPER_SNAKE_CASE. Ask the person for the value; never put it in code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | e.g. OPENAI_API_KEY | |
| value | Yes | The secret value | |
| directory | No | Absolute path of the app's folder (the one with teamonly.json). Defaults to the folder the server started in. |