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.
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>",
"value": "<value>"
},
"name": "set_secret"
}
}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. |