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:
parent
b43acf4aba
commit
7cc6ed435b
1 changed files with 7 additions and 0 deletions
|
|
@ -175,6 +175,13 @@ func (t *ExecTool) Parameters() map[string]any {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Optional working directory for the command",
|
"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"},
|
"required": []string{"command"},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue