@@ -6,8 +6,11 @@ import * as stagehandStore from "../stagehandStore.js";
6
6
7
7
// Empty schema since getting URL doesn't require any input
8
8
const GetUrlInputSchema = z . object ( { } ) ;
9
+ type GetUrlInput = z . infer < typeof GetUrlInputSchema > ;
10
+
9
11
// Schema for getting all session URLs
10
12
const GetAllUrlsInputSchema = z . object ( { } ) ;
13
+ type GetAllUrlsInput = z . infer < typeof GetAllUrlsInputSchema > ;
11
14
12
15
const getUrlSchema : ToolSchema < typeof GetUrlInputSchema > = {
13
16
name : "browserbase_stagehand_get_url" ,
@@ -16,7 +19,11 @@ const getUrlSchema: ToolSchema<typeof GetUrlInputSchema> = {
16
19
inputSchema : GetUrlInputSchema ,
17
20
} ;
18
21
19
- async function handleGetUrl ( context : Context ) : Promise < ToolResult > {
22
+ async function handleGetUrl (
23
+ context : Context ,
24
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
25
+ params : GetUrlInput ,
26
+ ) : Promise < ToolResult > {
20
27
const action = async ( ) : Promise < ToolActionResult > => {
21
28
try {
22
29
const stagehand = await context . getStagehand ( ) ;
@@ -58,7 +65,12 @@ const getAllUrlsSchema: ToolSchema<typeof GetAllUrlsInputSchema> = {
58
65
inputSchema : GetAllUrlsInputSchema ,
59
66
} ;
60
67
61
- async function handleGetAllUrls ( ) : Promise < ToolResult > {
68
+ async function handleGetAllUrls (
69
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
70
+ context : Context ,
71
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
72
+ params : GetAllUrlsInput ,
73
+ ) : Promise < ToolResult > {
62
74
const action = async ( ) : Promise < ToolActionResult > => {
63
75
try {
64
76
const sessions = stagehandStore . list ( ) ;
0 commit comments