guard_exec
Run local shell commands in an isolated process and mask API keys, credentials, database URIs, and PII in stdout and stderr before any output reaches the LLM.
Instructions
Zero-Trust Agentic Guard: Safely executes a shell/terminal command locally in isolated process, sanitizes stdout and stderr in volatile RAM, tokenizes any API keys, credentials, database URIs, or PII before sending output to LLM. Maps original values in memory for safe local restoration.
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": {
"command": "<command>"
},
"name": "guard_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory. Defaults to current workspace root. | |
| sector | No | Optional alias for 'profile'. The industry sector or compliance vertical to apply (e.g. 'medical', 'finance', 'legal', 'dev', 'hr', 'accounting', 'security', 'compliance', 'underwriting', 'telecom'). | |
| unmask | No | Optional. Substitute session tokens into command before local execution (requires server started with --allow-exec-unmask). | |
| command | Yes | The shell command to execute (e.g. 'cat .env', 'git diff', 'docker logs web', 'env'). | |
| profile | No | Detection profile. Available: 'Dev' (default for code/secrets), 'General', or any of the 30 specialized industry profiles (e.g. 'Security', 'Finance', 'Medical'). Defaults to 'Dev'. | |
| session_id | No | Optional session ID for multi-agent isolation. Defaults to 'default'. | |
| timeout_ms | No | Execution timeout in milliseconds. Defaults to 15000 (15s). | |
| verbose_receipt | No | Optional. Detailed multi-line audit receipt breakdown. |