ShellTool
autogen.beta.tools.builtin.shell.ShellTool #
Bases: Tool
Shell/bash execution tool.
Provider-specific mapping:
-
Anthropic — maps to
bash_20250124. Claude calls the tool with acommandorrestartinput; the application must execute it and return the result (client-side tool).environmentis ignored for Anthropic. -
OpenAI Responses API — maps to
shell(gpt-5.4). Useenvironmentto control where commands execute:ContainerAutoEnvironment,ContainerReferenceEnvironment, orLocalEnvironment. Omitenvironmentfor OpenAI's default behaviour.
See: - https://platform.claude.com/docs/en/agents-and-tools/tool-use/bash-tool - https://developers.openai.com/api/docs/guides/tools-shell