langchain.js
    Preparing search index...

    Interface Bash20250124Options

    Options for the bash tool.

    interface Bash20250124Options {
        execute?: (
            args: { command: string } | { restart: true },
        ) => string | Promise<string>;
    }
    Index

    Properties

    Properties

    execute?: (
        args: { command: string } | { restart: true },
    ) => string | Promise<string>

    Optional execute function that handles bash command execution. This function receives the command input and should return the result (stdout and stderr combined, or an error message).