overridesBuiltInTool: true,
handler: async (args, invocation) => {
const ref = await shellManager.getOrCreateShell(
shellType,
invocation.toolCallId,
invocation.toolCallId,
);
let shouldReleaseShell = true;
try {
let commandToRun = args.command;
if (sandboxEnabled) {
if (args.requestUnsandboxedExecution && !engine.areUnsandboxedCommandsAllowed()) {
return makeFailureResult(