data
Browserbase CLI for AI Agents
Use the Browserbase CLI from KosmoKrator to call Browserbase tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.Browserbase CLI Setup
Browserbase can be configured headlessly with `kosmokrator integrations:configure browserbase`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure browserbase --enable --read allow --write ask --json
kosmokrator integrations:doctor browserbase --json
kosmokrator integrations:status --json Credentials
Authentication type: API key api_key. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.
No credentials are required.
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call browserbase.browserbase_contexts_create '{"body":"example_body"}' --json kosmo integrations:browserbase browserbase_contexts_create '{"body":"example_body"}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs browserbase --json
kosmo integrations:docs browserbase.browserbase_contexts_create --json
kosmo integrations:schema browserbase.browserbase_contexts_create --json
kosmo integrations:search "Browserbase" --json
kosmo integrations:list --json Automation Contexts
The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.
CLI Functions
Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.
browserbase.browserbase_contexts_create
Create a Context Official Browserbase endpoint: POST /v1/contexts.
read - Parameters
- body
kosmo integrations:call browserbase.browserbase_contexts_create '{"body":"example_body"}' --json kosmo integrations:browserbase browserbase_contexts_create '{"body":"example_body"}' --json browserbase.browserbase_contexts_get
Get a Context Official Browserbase endpoint: GET /v1/contexts/{id}.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_contexts_get '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_contexts_get '{"id":"example_id"}' --json browserbase.browserbase_contexts_update
Update a Context Official Browserbase endpoint: PUT /v1/contexts/{id}.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_contexts_update '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_contexts_update '{"id":"example_id"}' --json browserbase.browserbase_contexts_delete
Delete a Context Official Browserbase endpoint: DELETE /v1/contexts/{id}.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_contexts_delete '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_contexts_delete '{"id":"example_id"}' --json browserbase.browserbase_downloads_list
List Downloads Official Browserbase endpoint: GET /v1/downloads.
read - Parameters
- session_id, filename, mime_type, min_size, max_size, created_after, created_before, limit, offset
kosmo integrations:call browserbase.browserbase_downloads_list '{"session_id":"example_session_id","filename":"example_filename","mime_type":"example_mime_type","min_size":1,"max_size":1,"created_after":"example_created_after","created_before":"example_created_before","limit":1}' --json kosmo integrations:browserbase browserbase_downloads_list '{"session_id":"example_session_id","filename":"example_filename","mime_type":"example_mime_type","min_size":1,"max_size":1,"created_after":"example_created_after","created_before":"example_created_before","limit":1}' --json browserbase.browserbase_downloads_get
Get a Download Official Browserbase endpoint: GET /v1/downloads/{id}.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_downloads_get '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_downloads_get '{"id":"example_id"}' --json browserbase.browserbase_downloads_delete
Delete a Download Official Browserbase endpoint: DELETE /v1/downloads/{id}.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_downloads_delete '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_downloads_delete '{"id":"example_id"}' --json browserbase.browserbase_extensions_upload
Upload an Extension Official Browserbase endpoint: POST /v1/extensions.
read - Parameters
- file
kosmo integrations:call browserbase.browserbase_extensions_upload '{"file":"example_file"}' --json kosmo integrations:browserbase browserbase_extensions_upload '{"file":"example_file"}' --json browserbase.browserbase_extensions_get
Get an Extension Official Browserbase endpoint: GET /v1/extensions/{id}.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_extensions_get '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_extensions_get '{"id":"example_id"}' --json browserbase.browserbase_extensions_delete
Delete an Extension Official Browserbase endpoint: DELETE /v1/extensions/{id}.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_extensions_delete '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_extensions_delete '{"id":"example_id"}' --json browserbase.browserbase_fetch_create
Fetch a Page Official Browserbase endpoint: POST /v1/fetch.
read - Parameters
- body
kosmo integrations:call browserbase.browserbase_fetch_create '{"body":"example_body"}' --json kosmo integrations:browserbase browserbase_fetch_create '{"body":"example_body"}' --json browserbase.browserbase_functions_list
List Functions Official Browserbase endpoint: GET /v1/functions.
read - Parameters
- offset, limit
kosmo integrations:call browserbase.browserbase_functions_list '{"offset":1,"limit":1}' --json kosmo integrations:browserbase browserbase_functions_list '{"offset":1,"limit":1}' --json browserbase.browserbase_function_builds_list
List Function Builds Official Browserbase endpoint: GET /v1/functions/builds.
read - Parameters
- offset, limit, status
kosmo integrations:call browserbase.browserbase_function_builds_list '{"offset":1,"limit":1,"status":"example_status"}' --json kosmo integrations:browserbase browserbase_function_builds_list '{"offset":1,"limit":1,"status":"example_status"}' --json browserbase.browserbase_function_builds_get
Get a Function Build Official Browserbase endpoint: GET /v1/functions/builds/{id}.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_function_builds_get '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_function_builds_get '{"id":"example_id"}' --json browserbase.browserbase_function_builds_get_logs
Get Function Build Logs Official Browserbase endpoint: GET /v1/functions/builds/{id}/logs.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_function_builds_get_logs '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_function_builds_get_logs '{"id":"example_id"}' --json browserbase.browserbase_invocations_get
Get an Invocation Official Browserbase endpoint: GET /v1/functions/invocations/{id}.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_invocations_get '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_invocations_get '{"id":"example_id"}' --json browserbase.browserbase_invocations_get_logs
Get Invocation Logs Official Browserbase endpoint: GET /v1/functions/invocations/{id}/logs.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_invocations_get_logs '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_invocations_get_logs '{"id":"example_id"}' --json browserbase.browserbase_function_versions_get
Get a Function Version Official Browserbase endpoint: GET /v1/functions/versions/{id}.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_function_versions_get '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_function_versions_get '{"id":"example_id"}' --json browserbase.browserbase_function_versions_list_invocations
List Invocations for a Function Version Official Browserbase endpoint: GET /v1/functions/versions/{id}/invocations.
read - Parameters
- offset, limit, status, id
kosmo integrations:call browserbase.browserbase_function_versions_list_invocations '{"offset":1,"limit":1,"status":"example_status","id":"example_id"}' --json kosmo integrations:browserbase browserbase_function_versions_list_invocations '{"offset":1,"limit":1,"status":"example_status","id":"example_id"}' --json browserbase.browserbase_functions_get
Get a Function Official Browserbase endpoint: GET /v1/functions/{id}.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_functions_get '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_functions_get '{"id":"example_id"}' --json browserbase.browserbase_functions_invoke
Invoke a Function Official Browserbase endpoint: POST /v1/functions/{id}/invoke.
read - Parameters
- id, body
kosmo integrations:call browserbase.browserbase_functions_invoke '{"id":"example_id","body":"example_body"}' --json kosmo integrations:browserbase browserbase_functions_invoke '{"id":"example_id","body":"example_body"}' --json browserbase.browserbase_functions_list_versions
List Function Versions Official Browserbase endpoint: GET /v1/functions/{id}/versions.
read - Parameters
- offset, limit, id
kosmo integrations:call browserbase.browserbase_functions_list_versions '{"offset":1,"limit":1,"id":"example_id"}' --json kosmo integrations:browserbase browserbase_functions_list_versions '{"offset":1,"limit":1,"id":"example_id"}' --json browserbase.browserbase_projects_list
List Projects Official Browserbase endpoint: GET /v1/projects.
read - Parameters
- none
kosmo integrations:call browserbase.browserbase_projects_list '{}' --json kosmo integrations:browserbase browserbase_projects_list '{}' --json browserbase.browserbase_projects_get
Get a Project Official Browserbase endpoint: GET /v1/projects/{id}.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_projects_get '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_projects_get '{"id":"example_id"}' --json browserbase.browserbase_projects_usage
Get Project Usage Official Browserbase endpoint: GET /v1/projects/{id}/usage.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_projects_usage '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_projects_usage '{"id":"example_id"}' --json browserbase.browserbase_search_web
Web Search Official Browserbase endpoint: POST /v1/search.
read - Parameters
- body
kosmo integrations:call browserbase.browserbase_search_web '{"body":"example_body"}' --json kosmo integrations:browserbase browserbase_search_web '{"body":"example_body"}' --json browserbase.browserbase_sessions_list
List Sessions Official Browserbase endpoint: GET /v1/sessions.
read - Parameters
- status, q
kosmo integrations:call browserbase.browserbase_sessions_list '{"status":"example_status","q":"example_q"}' --json kosmo integrations:browserbase browserbase_sessions_list '{"status":"example_status","q":"example_q"}' --json browserbase.browserbase_sessions_create
Create a Session Official Browserbase endpoint: POST /v1/sessions.
read - Parameters
- body
kosmo integrations:call browserbase.browserbase_sessions_create '{"body":"example_body"}' --json kosmo integrations:browserbase browserbase_sessions_create '{"body":"example_body"}' --json browserbase.browserbase_sessions_get
Get a Session Official Browserbase endpoint: GET /v1/sessions/{id}.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_sessions_get '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_sessions_get '{"id":"example_id"}' --json browserbase.browserbase_sessions_update
Update a Session Official Browserbase endpoint: POST /v1/sessions/{id}.
read - Parameters
- id, body
kosmo integrations:call browserbase.browserbase_sessions_update '{"id":"example_id","body":"example_body"}' --json kosmo integrations:browserbase browserbase_sessions_update '{"id":"example_id","body":"example_body"}' --json browserbase.browserbase_sessions_get_debug
Session Live URLs Official Browserbase endpoint: GET /v1/sessions/{id}/debug.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_sessions_get_debug '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_sessions_get_debug '{"id":"example_id"}' --json browserbase.browserbase_sessions_get_logs
Session Logs Official Browserbase endpoint: GET /v1/sessions/{id}/logs.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_sessions_get_logs '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_sessions_get_logs '{"id":"example_id"}' --json browserbase.browserbase_sessions_get_recording
Session Recording Official Browserbase endpoint: GET /v1/sessions/{id}/recording.
read - Parameters
- id
kosmo integrations:call browserbase.browserbase_sessions_get_recording '{"id":"example_id"}' --json kosmo integrations:browserbase browserbase_sessions_get_recording '{"id":"example_id"}' --json browserbase.browserbase_sessions_upload_file
Create Session Uploads Official Browserbase endpoint: POST /v1/sessions/{id}/uploads.
read - Parameters
- id, file
kosmo integrations:call browserbase.browserbase_sessions_upload_file '{"id":"example_id","file":"example_file"}' --json kosmo integrations:browserbase browserbase_sessions_upload_file '{"id":"example_id","file":"example_file"}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
browserbase.browserbase_contexts_create 1 parameters
kosmo integrations:schema browserbase.browserbase_contexts_create --json | Parameter | Type | Required | Description |
|---|---|---|---|
body | object | no | JSON request body matching the official Browserbase OpenAPI schema. |
browserbase.browserbase_contexts_get 1 parameters
kosmo integrations:schema browserbase.browserbase_contexts_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_contexts_update 1 parameters
kosmo integrations:schema browserbase.browserbase_contexts_update --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_contexts_delete 1 parameters
kosmo integrations:schema browserbase.browserbase_contexts_delete --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_downloads_list 9 parameters
kosmo integrations:schema browserbase.browserbase_downloads_list --json | Parameter | Type | Required | Description |
|---|---|---|---|
session_id | string | yes | Filter downloads by session ID (required). |
filename | string | no | Filter by exact filename match. |
mime_type | string | no | Filter by MIME type. |
min_size | number | no | Minimum file size in bytes. |
max_size | number | no | Maximum file size in bytes. |
created_after | string | no | Filter downloads created on or after this timestamp. |
created_before | string | no | Filter downloads created on or before this timestamp. |
limit | number | no | Maximum number of results to return. |
offset | number | no | Number of results to skip for pagination. |
browserbase.browserbase_downloads_get 1 parameters
kosmo integrations:schema browserbase.browserbase_downloads_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The download ID. |
browserbase.browserbase_downloads_delete 1 parameters
kosmo integrations:schema browserbase.browserbase_downloads_delete --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | The download ID to delete. |
browserbase.browserbase_extensions_upload 1 parameters
kosmo integrations:schema browserbase.browserbase_extensions_upload --json | Parameter | Type | Required | Description |
|---|---|---|---|
file | string | yes | file Provide a local file path for upload. |
browserbase.browserbase_extensions_get 1 parameters
kosmo integrations:schema browserbase.browserbase_extensions_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_extensions_delete 1 parameters
kosmo integrations:schema browserbase.browserbase_extensions_delete --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_fetch_create 1 parameters
kosmo integrations:schema browserbase.browserbase_fetch_create --json | Parameter | Type | Required | Description |
|---|---|---|---|
body | object | yes | JSON request body matching the official Browserbase OpenAPI schema. |
browserbase.browserbase_functions_list 2 parameters
kosmo integrations:schema browserbase.browserbase_functions_list --json | Parameter | Type | Required | Description |
|---|---|---|---|
offset | integer | no | offset |
limit | integer | no | limit |
browserbase.browserbase_function_builds_list 3 parameters
kosmo integrations:schema browserbase.browserbase_function_builds_list --json | Parameter | Type | Required | Description |
|---|---|---|---|
offset | integer | no | offset |
limit | integer | no | limit |
status | string | no | status |
browserbase.browserbase_function_builds_get 1 parameters
kosmo integrations:schema browserbase.browserbase_function_builds_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_function_builds_get_logs 1 parameters
kosmo integrations:schema browserbase.browserbase_function_builds_get_logs --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_invocations_get 1 parameters
kosmo integrations:schema browserbase.browserbase_invocations_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_invocations_get_logs 1 parameters
kosmo integrations:schema browserbase.browserbase_invocations_get_logs --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_function_versions_get 1 parameters
kosmo integrations:schema browserbase.browserbase_function_versions_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_function_versions_list_invocations 4 parameters
kosmo integrations:schema browserbase.browserbase_function_versions_list_invocations --json | Parameter | Type | Required | Description |
|---|---|---|---|
offset | integer | no | offset |
limit | integer | no | limit |
status | string | no | status |
id | string | yes | id |
browserbase.browserbase_functions_get 1 parameters
kosmo integrations:schema browserbase.browserbase_functions_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_functions_invoke 2 parameters
kosmo integrations:schema browserbase.browserbase_functions_invoke --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
body | object | no | JSON request body matching the official Browserbase OpenAPI schema. |
browserbase.browserbase_functions_list_versions 3 parameters
kosmo integrations:schema browserbase.browserbase_functions_list_versions --json | Parameter | Type | Required | Description |
|---|---|---|---|
offset | integer | no | offset |
limit | integer | no | limit |
id | string | yes | id |
browserbase.browserbase_projects_list 0 parameters
kosmo integrations:schema browserbase.browserbase_projects_list --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
browserbase.browserbase_projects_get 1 parameters
kosmo integrations:schema browserbase.browserbase_projects_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_projects_usage 1 parameters
kosmo integrations:schema browserbase.browserbase_projects_usage --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_search_web 1 parameters
kosmo integrations:schema browserbase.browserbase_search_web --json | Parameter | Type | Required | Description |
|---|---|---|---|
body | object | yes | JSON request body matching the official Browserbase OpenAPI schema. |
browserbase.browserbase_sessions_list 2 parameters
kosmo integrations:schema browserbase.browserbase_sessions_list --json | Parameter | Type | Required | Description |
|---|---|---|---|
status | string | no | status |
q | string | no | Query sessions by user metadata. See [Querying Sessions by User Metadata](/features/sessions#querying-sessions-by-user-metadata) for the schema of this query. |
browserbase.browserbase_sessions_create 1 parameters
kosmo integrations:schema browserbase.browserbase_sessions_create --json | Parameter | Type | Required | Description |
|---|---|---|---|
body | object | no | JSON request body matching the official Browserbase OpenAPI schema. |
browserbase.browserbase_sessions_get 1 parameters
kosmo integrations:schema browserbase.browserbase_sessions_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_sessions_update 2 parameters
kosmo integrations:schema browserbase.browserbase_sessions_update --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
body | object | yes | JSON request body matching the official Browserbase OpenAPI schema. |
browserbase.browserbase_sessions_get_debug 1 parameters
kosmo integrations:schema browserbase.browserbase_sessions_get_debug --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_sessions_get_logs 1 parameters
kosmo integrations:schema browserbase.browserbase_sessions_get_logs --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_sessions_get_recording 1 parameters
kosmo integrations:schema browserbase.browserbase_sessions_get_recording --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
browserbase.browserbase_sessions_upload_file 2 parameters
kosmo integrations:schema browserbase.browserbase_sessions_upload_file --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | id |
file | string | yes | file Provide a local file path for upload. |
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults with
integrations:configure. Add --force only for trusted automation that should bypass that policy.