Skip to content

Commit 56af92b

Browse files
committed
bashtool
1 parent addaed3 commit 56af92b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export function bashTool(instance: UbuntuInstance) {
183183
restart: z.boolean().optional().default(false).describe("Whether to restart the shell"),
184184
listSessions: z.boolean().optional().default(false).describe("Whether to list available sessions"),
185185
checkSession: z.number().optional().describe("Session ID to check if it exists"),
186+
timeout: z.number().optional().describe("Timeout for command execution"),
186187
}),
187188
execute: async (params) => {
188189
return instance.bash({
@@ -191,6 +192,7 @@ export function bashTool(instance: UbuntuInstance) {
191192
restart: params.restart,
192193
listSessions: params.listSessions,
193194
checkSession: params.checkSession,
195+
timeout: params.timeout,
194196
});
195197
},
196198
});

0 commit comments

Comments
 (0)