feat(security): add env parameter to exec tool schema

- Add env parameter to tool definition for LLM
- Document blocked vars in description
This commit is contained in:
Keith Patrick 2026-03-08 20:11:47 +00:00
parent b43acf4aba
commit 7cc6ed435b

View file

@ -175,6 +175,13 @@ func (t *ExecTool) Parameters() map[string]any {
"type": "string",
"description": "Optional working directory for the command",
},
"env": map[string]any{
"type": "object",
"description": "Additional environment variables to set for this command. Cannot override: PATH, HOME, USER, LOGNAME, SHELL, LD_PRELOAD, LD_LIBRARY_PATH, LD_AUDIT, LD_DEBUG",
"additionalProperties": map[string]any{
"type": "string",
},
},
},
"required": []string{"command"},
}