Create profile
create_profileCreate a named persistent Chrome profile to keep cookies, logins, and extensions between runs. Use unique names for concurrent browsers to reuse sessions without overwriting existing profiles.
Instructions
Create a named persistent Chrome profile — a reusable user-data dir.
A persistent profile keeps cookies, logins and Web Store extensions between runs. By default it starts with a new tab. Set restore_tabs=True to resume the last tabs, or configure new_tab / urls / restore later with set_browser_flags(startup_mode=...). It is the sturdier alternative to save_session / load_session.
Creating one is harmless by itself: nothing changes until you activate it, here or via use_profile. An existing profile of the same name is left untouched rather than overwritten. Profiles live under ~/.nodriver-mcp/profiles/.
Only one browser instance can use a given profile at a time, so give concurrent setups different names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Profile name, e.g. "google-login". Only letters, digits, "-" and "_" are kept; any other character is stripped out. | |
| browser | No | Which browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name. | default |
| activate | No | Switch to the new profile straight away. That restarts the browser and closes all open pages. Default false, which only creates the directory. | |
| restore_tabs | No | Restore the last open tabs automatically when this profile restarts. Default false (new tab). Only applies when creating a new profile; existing Chrome settings are preserved. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |