exec_with_secrets
Run shell commands with named vault secrets injected as environment variables, requiring user approval and returning output with secret values redacted.
Instructions
Run a shell command with the named secrets injected as environment variables (reference them as %NAME% / $env:NAME / $NAME inside the command). The user must approve access via a native dialog that shows the full command; approval covers that exact command string for 15 minutes, so reuse the identical command for retries (the user may instead allow any command for 30 minutes). Commands over 2000 characters are refused: put long logic in a script. A denial is final — never retry it. Output is returned with any plaintext secret values redacted. This is the ONLY way to use a secret; values never appear in conversation context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory. | |
| command | Yes | Shell command to run (executed via cmd /c on Windows). | |
| secrets | Yes | Names of vault secrets to inject as env vars. |