langchain.js
    Preparing search index...

    Variable toolsConst

    tools: {
        bash_20250124: (
            options?: Bash20250124Options,
        ) => DynamicStructuredTool<
            ZodUnion<
                readonly [
                    ZodObject<{ command: ZodString }, $strip>,
                    ZodObject<{ restart: ZodLiteral<true> }, $strip>,
                ],
            >,
            { command: string } | { restart: true },
            unknown,
            string,
        >;
        codeExecution_20250825: (
            options?: CodeExecution20250825Options,
        ) => ServerTool;
        computer_20250124: (
            options: Computer20250124Options,
        ) => DynamicStructuredTool<
            ZodDiscriminatedUnion<
                [
                    ZodObject<{ action: ZodLiteral<"screenshot"> }, $strip>,
                    ZodObject<
                        {
                            action: ZodLiteral<"left_click">;
                            coordinate: ZodTuple<[ZodNumber, ZodNumber], null>;
                        },
                        $strip,
                    >,
                    ZodObject<
                        {
                            action: ZodLiteral<"right_click">;
                            coordinate: ZodTuple<[ZodNumber, ZodNumber], null>;
                        },
                        $strip,
                    >,
                    ZodObject<
                        {
                            action: ZodLiteral<"middle_click">;
                            coordinate: ZodTuple<[ZodNumber, ZodNumber], null>;
                        },
                        $strip,
                    >,
                ],
                "action",
            >,
            Computer20250124Action,
            any,
            any,
        >;
        computer_20251124: (
            options: Computer20251124Options,
        ) => DynamicStructuredTool<
            ZodDiscriminatedUnion<
                [
                    ZodObject<{ action: ZodLiteral<"screenshot"> }, $strip>,
                    ZodObject<
                        {
                            action: ZodLiteral<"left_click">;
                            coordinate: ZodTuple<[ZodNumber, ZodNumber], null>;
                        },
                        $strip,
                    >,
                    ZodObject<
                        {
                            action: ZodLiteral<"right_click">;
                            coordinate: ZodTuple<[ZodNumber, ZodNumber], null>;
                        },
                        $strip,
                    >,
                    ZodObject<
                        {
                            action: ZodLiteral<"middle_click">;
                            coordinate: ZodTuple<[ZodNumber, ZodNumber], null>;
                        },
                        $strip,
                    >,
                ],
                "action",
            >,
            Computer20251124Action,
            any,
            ToolMessage<any>,
        >;
        mcpToolset_20251120: (options: MCPToolsetOptions) => ServerTool;
        memory_20250818: (
            options?: MemoryTool20250818Options,
        ) => DynamicStructuredTool<
            ZodDiscriminatedUnion<
                [
                    ZodObject<{ command: ZodLiteral<"view">; path: ZodString }, $strip>,
                    ZodObject<
                        {
                            command: ZodLiteral<"create">;
                            file_text: ZodString;
                            path: ZodString;
                        },
                        $strip,
                    >,
                    ZodObject<
                        {
                            command: ZodLiteral<"str_replace">;
                            new_str: ZodString;
                            old_str: ZodString;
                            path: ZodString;
                        },
                        $strip,
                    >,
                    ZodObject<
                        {
                            command: ZodLiteral<"insert">;
                            insert_line: ZodNumber;
                            insert_text: ZodString;
                            path: ZodString;
                        },
                        $strip,
                    >,
                    ZodObject<{ command: ZodLiteral<"delete">; path: ZodString }, $strip>,
                    ZodObject<
                        {
                            command: ZodLiteral<"rename">;
                            new_path: ZodString;
                            old_path: ZodString;
                        },
                        $strip,
                    >,
                ],
                "command",
            >,
            | { command: "view"; path: string }
            | { command: "create"; file_text: string; path: string }
            | {
                command: "str_replace";
                new_str: string;
                old_str: string;
                path: string;
            }
            | {
                command: "insert";
                insert_line: number;
                insert_text: string;
                path: string;
            }
            | { command: "delete"; path: string }
            | { command: "rename"; new_path: string; old_path: string },
            unknown,
            string | Promise<string>,
        >;
        textEditor_20250728: (
            options?: TextEditor20250728Options,
        ) => DynamicStructuredTool<
            ZodDiscriminatedUnion<
                [
                    ZodObject<
                        {
                            command: ZodLiteral<"view">;
                            path: ZodString;
                            view_range: ZodOptional<ZodTuple<[ZodNumber, ZodNumber], null>>;
                        },
                        $strip,
                    >,
                    ZodObject<
                        {
                            command: ZodLiteral<"str_replace">;
                            new_str: ZodString;
                            old_str: ZodString;
                            path: ZodString;
                        },
                        $strip,
                    >,
                    ZodObject<
                        {
                            command: ZodLiteral<"create">;
                            file_text: ZodString;
                            path: ZodString;
                        },
                        $strip,
                    >,
                    ZodObject<
                        {
                            command: ZodLiteral<"insert">;
                            insert_line: ZodNumber;
                            new_str: ZodString;
                            path: ZodString;
                        },
                        $strip,
                    >,
                ],
                "command",
            >,
            | { command: "view"; path: string; view_range?: [number, number] }
            | {
                command: "str_replace";
                new_str: string;
                old_str: string;
                path: string;
            }
            | { command: "create"; file_text: string; path: string }
            | {
                command: "insert";
                insert_line: number;
                new_str: string;
                path: string;
            },
            unknown,
            string
            | Promise<string>,
        >;
        toolSearchBM25_20251119: (options?: ToolSearchOptions) => ServerTool;
        toolSearchRegex_20251119: (options?: ToolSearchOptions) => ServerTool;
        webFetch_20250910: (options?: WebFetch20250910Options) => ServerTool;
        webSearch_20250305: (options?: WebSearch20250305Options) => ServerTool;
    } = ...

    Type Declaration

    • bash_20250124: (
          options?: Bash20250124Options,
      ) => DynamicStructuredTool<
          ZodUnion<
              readonly [
                  ZodObject<{ command: ZodString }, $strip>,
                  ZodObject<{ restart: ZodLiteral<true> }, $strip>,
              ],
          >,
          { command: string } | { restart: true },
          unknown,
          string,
      >
    • codeExecution_20250825: (options?: CodeExecution20250825Options) => ServerTool
    • computer_20250124: (
          options: Computer20250124Options,
      ) => DynamicStructuredTool<
          ZodDiscriminatedUnion<
              [
                  ZodObject<{ action: ZodLiteral<"screenshot"> }, $strip>,
                  ZodObject<
                      {
                          action: ZodLiteral<"left_click">;
                          coordinate: ZodTuple<[ZodNumber, ZodNumber], null>;
                      },
                      $strip,
                  >,
                  ZodObject<
                      {
                          action: ZodLiteral<"right_click">;
                          coordinate: ZodTuple<[ZodNumber, ZodNumber], null>;
                      },
                      $strip,
                  >,
                  ZodObject<
                      {
                          action: ZodLiteral<"middle_click">;
                          coordinate: ZodTuple<[ZodNumber, ZodNumber], null>;
                      },
                      $strip,
                  >,
              ],
              "action",
          >,
          Computer20250124Action,
          any,
          any,
      >
    • computer_20251124: (
          options: Computer20251124Options,
      ) => DynamicStructuredTool<
          ZodDiscriminatedUnion<
              [
                  ZodObject<{ action: ZodLiteral<"screenshot"> }, $strip>,
                  ZodObject<
                      {
                          action: ZodLiteral<"left_click">;
                          coordinate: ZodTuple<[ZodNumber, ZodNumber], null>;
                      },
                      $strip,
                  >,
                  ZodObject<
                      {
                          action: ZodLiteral<"right_click">;
                          coordinate: ZodTuple<[ZodNumber, ZodNumber], null>;
                      },
                      $strip,
                  >,
                  ZodObject<
                      {
                          action: ZodLiteral<"middle_click">;
                          coordinate: ZodTuple<[ZodNumber, ZodNumber], null>;
                      },
                      $strip,
                  >,
              ],
              "action",
          >,
          Computer20251124Action,
          any,
          ToolMessage<any>,
      >
    • mcpToolset_20251120: (options: MCPToolsetOptions) => ServerTool
    • memory_20250818: (
          options?: MemoryTool20250818Options,
      ) => DynamicStructuredTool<
          ZodDiscriminatedUnion<
              [
                  ZodObject<{ command: ZodLiteral<"view">; path: ZodString }, $strip>,
                  ZodObject<
                      {
                          command: ZodLiteral<"create">;
                          file_text: ZodString;
                          path: ZodString;
                      },
                      $strip,
                  >,
                  ZodObject<
                      {
                          command: ZodLiteral<"str_replace">;
                          new_str: ZodString;
                          old_str: ZodString;
                          path: ZodString;
                      },
                      $strip,
                  >,
                  ZodObject<
                      {
                          command: ZodLiteral<"insert">;
                          insert_line: ZodNumber;
                          insert_text: ZodString;
                          path: ZodString;
                      },
                      $strip,
                  >,
                  ZodObject<{ command: ZodLiteral<"delete">; path: ZodString }, $strip>,
                  ZodObject<
                      {
                          command: ZodLiteral<"rename">;
                          new_path: ZodString;
                          old_path: ZodString;
                      },
                      $strip,
                  >,
              ],
              "command",
          >,
          | { command: "view"; path: string }
          | { command: "create"; file_text: string; path: string }
          | {
              command: "str_replace";
              new_str: string;
              old_str: string;
              path: string;
          }
          | {
              command: "insert";
              insert_line: number;
              insert_text: string;
              path: string;
          }
          | { command: "delete"; path: string }
          | { command: "rename"; new_path: string; old_path: string },
          unknown,
          string | Promise<string>,
      >
    • textEditor_20250728: (
          options?: TextEditor20250728Options,
      ) => DynamicStructuredTool<
          ZodDiscriminatedUnion<
              [
                  ZodObject<
                      {
                          command: ZodLiteral<"view">;
                          path: ZodString;
                          view_range: ZodOptional<ZodTuple<[ZodNumber, ZodNumber], null>>;
                      },
                      $strip,
                  >,
                  ZodObject<
                      {
                          command: ZodLiteral<"str_replace">;
                          new_str: ZodString;
                          old_str: ZodString;
                          path: ZodString;
                      },
                      $strip,
                  >,
                  ZodObject<
                      {
                          command: ZodLiteral<"create">;
                          file_text: ZodString;
                          path: ZodString;
                      },
                      $strip,
                  >,
                  ZodObject<
                      {
                          command: ZodLiteral<"insert">;
                          insert_line: ZodNumber;
                          new_str: ZodString;
                          path: ZodString;
                      },
                      $strip,
                  >,
              ],
              "command",
          >,
          | { command: "view"; path: string; view_range?: [number, number] }
          | {
              command: "str_replace";
              new_str: string;
              old_str: string;
              path: string;
          }
          | { command: "create"; file_text: string; path: string }
          | { command: "insert"; insert_line: number; new_str: string; path: string },
          unknown,
          string | Promise<string>,
      >
    • toolSearchBM25_20251119: (options?: ToolSearchOptions) => ServerTool
    • toolSearchRegex_20251119: (options?: ToolSearchOptions) => ServerTool
    • webFetch_20250910: (options?: WebFetch20250910Options) => ServerTool
    • webSearch_20250305: (options?: WebSearch20250305Options) => ServerTool