set_env
Assign environment variables to a Hatchable project, accessible in functions via process.env. Keys containing SECRET, PASSWORD, TOKEN, API_KEY, or PRIVATE are automatically treated as secrets.
Instructions
Set environment variables for a project. Available in functions via process.env.KEY. Keys containing SECRET, PASSWORD, TOKEN, API_KEY, or PRIVATE are automatically marked as secrets.
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": {
"project_id": "<project_id>",
"vars": "<vars>"
},
"name": "set_env"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID (e.g. proj_a8Kq7fR2xZ) | |
| vars | Yes | Key-value pairs of environment variables |