Ag2 Shell Tool

Give an AG2 `Agent` the ability to run shell commands. Covers `SandboxShellTool` (client-side `subprocess` via `LocalEnvironment`, works with any provider) and the provider-native `ShellTool` (OpenAI Responses execution). Use when the user wants the Agent to execute commands, build/test code, manage files, or operate on a workspace. Always pair with sandboxing — `allowed`, `blocked`, `ignore`, or `readonly`.

ag2ai 101e3ed 9.1 KB Updated

File contents

ag2ai/ag2-skills/tree/main/skills/ag2-shell-tool commit 101e3ed5a9

Frequently asked questions

npx skillmds@latest add ag2ai/ag2-shell-tool