You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more information, see [Anthropic's Code Execution Tool documentation](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/code-execution-tool).
508
508
509
+
### Bash Tool
510
+
511
+
The bash tool (`bash_20250124`) enables shell command execution in a persistent bash session. Unlike the sandboxed code execution tool, this tool requires you to provide your own execution environment.
512
+
513
+
> **⚠️ Security Warning:** The bash tool provides direct system access. Implement safety measures such as running in isolated environments (Docker/VM), command filtering, and resource limits.
514
+
515
+
The bash tool provides:
516
+
517
+
-**Persistent bash session** - Maintains state between commands
518
+
-**Shell command execution** - Run any shell command
519
+
-**Environment access** - Access to environment variables and working directory
520
+
-**Command chaining** - Support for pipes, redirects, and scripting
0 commit comments