run_with_secrets
Run commands with KeePassXC secrets injected as environment variables, restricted to approved commands and hosts, with user approval per run and secret values redacted from output.
Instructions
Run a command (no shell) with KeePassXC secrets in environment variables, e.g. GH_TOKEN for gh or a curl --variable/--expand-header token. Only commands and hosts listed in the entry's 'KPH: agent-commands' and 'KPH: agent-hosts' attributes are allowed, the user approves each run, and secret values are removed from the output.
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": {
"argv": "<argv>",
"env": "<env>"
},
"name": "run_with_secrets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | Yes | VARIABLE -> KeePassXC entry lookup | |
| argv | Yes | ||
| timeout | No |