Skip to content

Commit 6a8d6d0

Browse files
authored
add preserveUserDataDir to docs (#837)
# why # what changed # test plan
1 parent d8e4e04 commit 6a8d6d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/reference/initialization_config.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const stagehand = new Stagehand({
8282
devtools: true,
8383
bypassCSP: false,
8484
cdpUrl: 'http://localhost:9222',
85+
preserveUserDataDir: false, // Whether to preserve the user data directory after Stagehand is closed. Defaults to false.
8586
},
8687
});
8788

@@ -411,6 +412,9 @@ This constructor is used to create an instance of Stagehand.
411412
<ResponseField name="cdpUrl" type="string">
412413
URL for the Chrome DevTools Protocol. Useful for connecting to a running browser instance.
413414
</ResponseField>
415+
<ResponseField name="preserveUserDataDir" type="boolean">
416+
Whether to preserve the user data directory after Stagehand is closed. This is useful for reusing local context with multiple sessions. Defaults to false.
417+
</ResponseField>
414418
</Expandable>
415419
</ResponseField>
416420

0 commit comments

Comments
 (0)