anb_exec
Run allowlisted commands with secure secret injection via environment variables, resolving agent-vault:key placeholders. Returns exit code with redacted output; secrets never revealed.
Instructions
Run an operator-allowlisted command with named secrets injected into the child process's environment. SIDE EFFECT: spawns a real subprocess — default-deny, only commands matching a scope=mcp allowlist rule run, everything else is refused. NOT idempotent (effects depend on the command). Requires an enrolled identity and a reachable, unlocked Bob to resolve agent-vault:key placeholders. Returns the exit code plus REDACTED stdout/stderr; the raw secret is never returned even if the child prints it. A denied or failed command returns a non-zero exit_code with the reason in stderr_redacted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | child env entries, each in KEY=VALUE form; VALUE may contain <agent-vault:key> placeholders that Bob resolves into the child env only — never echoed back. Omit for none | |
| args | No | positional arguments passed to the command in order, each literally (no shell parsing/globbing); omit for none | |
| command | Yes | absolute path of the executable to run (e.g. /usr/bin/curl); the full command line must match a scope=mcp allowlist rule or it is refused |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exit_code | Yes | ||
| stderr_redacted | Yes | command stderr with secrets redacted (includes an allowlist-denial message when the command was not permitted) | |
| stdout_redacted | Yes | command stdout with secrets redacted |