langchain.js
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • OptionalstagehandInstance: Stagehand

      Returns StagehandExtractTool

    Properties

    description: string = "Use this tool to extract structured information from the current web page using Stagehand. The input should include an 'instruction' string and a 'schema' object representing the extraction schema in JSON Schema format."
    name: string = "stagehand_extract"
    schema: ZodObject<
        { instruction: ZodString; schema: ZodRecord<ZodString, ZodAny> },
        "strip",
        ZodTypeAny,
        { instruction: string; schema: Record<string, any> },
        { instruction: string; schema: Record<string, any> },
    > = ...

    Methods

    • Parameters

      • input: { instruction: string; schema: AnyZodObject }

      Returns Promise<string>

    • Returns Promise<Stagehand>