Pull environment to a file
pull_envPrepare a one-time download into a local file without exposing its values in the tool response. Use pull_env to pass variables to a local task; use reveal_values when the task needs a value in memory. Run commands.sh or commands.powershell from the text result in the target directory. The command overwrites the target file if it exists. Set format and file together, for example json and config.json; the extension does not select the format. A zero-knowledge project's file is a sealed bundle (JSON of ciphertext) whatever format is set; the Secret Store CLI or Action opens it on your machine, so run pull_env through them. For a subset, pass a nonempty keys list. Compare the returned keys with the ones the task needs before using the file. Notes name excluded keys. No readable match fails the call, as does any selected protected key covered by a grant if the owner lacks unlock access. Needs secrets:read. Issuing the ticket can spend a single-use access grant; the ticket itself is a credential valid for one download within 10 minutes. Issuance and redemption are audited. Report key names without reading the file back. Keep the ticket and commands out of chat and logs.
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": "<project>",
"environment": "<environment>"
},
"name": "pull_env"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Bare file name the command writes in the directory it runs in, e.g. .env.local (default) or .env. Up to 64 letters, digits, dots, dashes and underscores; no slash, space or leading dash | .env.local |
| keys | No | Up to 200 exact key names, e.g. ["DATABASE_URL", "API_KEY"]. Omission or [] selects all readable keys. Absent names do not appear in the export | |
| format | No | File format: dotenv (KEY=value lines, default), json (one object) or shell (export KEY=value lines) | dotenv |
| project | Yes | Project slug from list_projects, e.g. my-app, or its id (a UUID) | |
| environment | Yes | Environment slug, e.g. development, preview or production, or its id (a UUID) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| ticket | Yes | ||
| project | Yes | ||
| pullUrl | Yes | ||
| expiresAt | Yes | ISO 8601 timestamp | |
| environment | Yes |