langchain.js
Preparing search index...
@langchain/community
agents/toolkits/stagehand
StagehandExtractTool
Class StagehandExtractTool
Hierarchy (
View Summary
)
BaseDynamicToolInput
StagehandExtractTool
Index
Constructors
constructor
Properties
description
name
schema
Methods
_
call
get
Stagehand
Constructors
constructor
new
StagehandExtractTool
(
stagehandInstance
?:
Stagehand
)
:
StagehandExtractTool
Parameters
Optional
stagehandInstance
:
Stagehand
Returns
StagehandExtractTool
Properties
description
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
name
:
string
= "stagehand_extract"
schema
schema
:
ZodObject
<
{
instruction
:
ZodString
;
schema
:
ZodRecord
<
ZodString
,
ZodAny
>
}
,
"strip"
,
ZodTypeAny
,
{
instruction
:
string
;
schema
:
Record
<
string
,
any
>
}
,
{
instruction
:
string
;
schema
:
Record
<
string
,
any
>
}
,
>
= ...
Methods
_
call
_call
(
input
:
{
instruction
:
string
;
schema
:
AnyZodObject
}
)
:
Promise
<
string
>
Parameters
input
:
{
instruction
:
string
;
schema
:
AnyZodObject
}
Returns
Promise
<
string
>
Protected
get
Stagehand
getStagehand
()
:
Promise
<
Stagehand
>
Returns
Promise
<
Stagehand
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
description
name
schema
Methods
_
call
get
Stagehand
langchain.js
Loading...