tweak: bash tool, try to prevent the cd spam

This commit is contained in:
Aiden Cline
2025-12-11 14:58:44 -06:00
parent f8dc740c61
commit 4e92f54415
2 changed files with 3 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ export const BashTool = Tool.define("bash", async () => {
log.info("bash tool using shell", { shell })
return {
description: DESCRIPTION,
description: DESCRIPTION.replaceAll("${directory}", Instance.directory),
parameters: z.object({
command: z.string().describe("The command to execute"),
timeout: z.number().describe("Optional timeout in milliseconds").optional(),