shell_exec shell_exec ¶ Shell execution tool — run shell commands with security constraints. Classes¶ ShellExecTool ¶ Bases: BaseTool Execute shell commands with a sanitised environment.