Skip to content

Commit ad7a11c

Browse files
committed
tool formatting
1 parent dc958ab commit ad7a11c

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/tools/url.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ import * as stagehandStore from "../stagehandStore.js";
66

77
// Empty schema since getting URL doesn't require any input
88
const GetUrlInputSchema = z.object({});
9+
type GetUrlInput = z.infer<typeof GetUrlInputSchema>;
10+
911
// Schema for getting all session URLs
1012
const GetAllUrlsInputSchema = z.object({});
13+
type GetAllUrlsInput = z.infer<typeof GetAllUrlsInputSchema>;
1114

1215
const getUrlSchema: ToolSchema<typeof GetUrlInputSchema> = {
1316
name: "browserbase_stagehand_get_url",
@@ -16,7 +19,11 @@ const getUrlSchema: ToolSchema<typeof GetUrlInputSchema> = {
1619
inputSchema: GetUrlInputSchema,
1720
};
1821

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> {
2027
const action = async (): Promise<ToolActionResult> => {
2128
try {
2229
const stagehand = await context.getStagehand();
@@ -58,7 +65,12 @@ const getAllUrlsSchema: ToolSchema<typeof GetAllUrlsInputSchema> = {
5865
inputSchema: GetAllUrlsInputSchema,
5966
};
6067

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> {
6274
const action = async (): Promise<ToolActionResult> => {
6375
try {
6476
const sessions = stagehandStore.list();

0 commit comments

Comments
 (0)