# Vercel's @ai-sdk/tool-bash 1.0.42 runs bash commands in the supplied sandbox

published: 2026-12-03T00:05:34.228Z
topic: frameworks
source: https://github.com/vercel/ai/releases/tag/%40ai-sdk%2Ftool-bash%401.0.42
url: https://aiagentnews.io/stories/vercel-s-ai-sdk-tool-bash-1-0-42-runs-bash-commands-in-the-supplied-sandbox

Vercel has released @ai-sdk/tool-bash 1.0.42, which changes how the bash tool runs commands and builds its descriptions. The patch also changes createBashTool() so it returns synchronously and no longer requires a sandbox.

The patch release, published on 2 December, makes the bash tool use the sandbox supplied through experimental_sandbox for both command execution and tool descriptions.

createBashTool() now returns synchronously and does not need a sandbox to be passed in up front. Custom working directories are created during execution in the current sandbox.

The changelog also says HarnessAgent now resolves dynamic tool descriptions using the current tool context and sandbox before sending them to the runtime.

## Why it matters if you build agents

If you call createBashTool() at setup time, you can drop the sandbox argument and handle it at execution time instead. Code that expected the call to be asynchronous should be checked against the new synchronous return.

If you use experimental_sandbox, confirm that your tool descriptions and working directories are resolved in the sandbox you expect, since that is now where execution happens.
