KosmoKrator

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, configure, and verify
# 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.

Generic CLI call
kosmo integrations:call browserbase.browserbase_contexts_create '{"body":"example_body"}' --json
Provider shortcut
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.

Discovery commands
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 read
Parameters
body
Generic call
kosmo integrations:call browserbase.browserbase_contexts_create '{"body":"example_body"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_contexts_get '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_contexts_update '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_contexts_delete '{"id":"example_id"}' --json
Shortcut
kosmo integrations:browserbase browserbase_contexts_delete '{"id":"example_id"}' --json

browserbase.browserbase_downloads_list

List Downloads Official Browserbase endpoint: GET /v1/downloads.

Read read
Parameters
session_id, filename, mime_type, min_size, max_size, created_after, created_before, limit, offset
Generic call
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
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_downloads_get '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_downloads_delete '{"id":"example_id"}' --json
Shortcut
kosmo integrations:browserbase browserbase_downloads_delete '{"id":"example_id"}' --json

browserbase.browserbase_extensions_upload

Upload an Extension Official Browserbase endpoint: POST /v1/extensions.

Read read
Parameters
file
Generic call
kosmo integrations:call browserbase.browserbase_extensions_upload '{"file":"example_file"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_extensions_get '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_extensions_delete '{"id":"example_id"}' --json
Shortcut
kosmo integrations:browserbase browserbase_extensions_delete '{"id":"example_id"}' --json

browserbase.browserbase_fetch_create

Fetch a Page Official Browserbase endpoint: POST /v1/fetch.

Read read
Parameters
body
Generic call
kosmo integrations:call browserbase.browserbase_fetch_create '{"body":"example_body"}' --json
Shortcut
kosmo integrations:browserbase browserbase_fetch_create '{"body":"example_body"}' --json

browserbase.browserbase_functions_list

List Functions Official Browserbase endpoint: GET /v1/functions.

Read read
Parameters
offset, limit
Generic call
kosmo integrations:call browserbase.browserbase_functions_list '{"offset":1,"limit":1}' --json
Shortcut
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 read
Parameters
offset, limit, status
Generic call
kosmo integrations:call browserbase.browserbase_function_builds_list '{"offset":1,"limit":1,"status":"example_status"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_function_builds_get '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_function_builds_get_logs '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_invocations_get '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_invocations_get_logs '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_function_versions_get '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
offset, limit, status, id
Generic call
kosmo integrations:call browserbase.browserbase_function_versions_list_invocations '{"offset":1,"limit":1,"status":"example_status","id":"example_id"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_functions_get '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
id, body
Generic call
kosmo integrations:call browserbase.browserbase_functions_invoke '{"id":"example_id","body":"example_body"}' --json
Shortcut
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 read
Parameters
offset, limit, id
Generic call
kosmo integrations:call browserbase.browserbase_functions_list_versions '{"offset":1,"limit":1,"id":"example_id"}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call browserbase.browserbase_projects_list '{}' --json
Shortcut
kosmo integrations:browserbase browserbase_projects_list '{}' --json

browserbase.browserbase_projects_get

Get a Project Official Browserbase endpoint: GET /v1/projects/{id}.

Read read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_projects_get '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_projects_usage '{"id":"example_id"}' --json
Shortcut
kosmo integrations:browserbase browserbase_projects_usage '{"id":"example_id"}' --json

browserbase.browserbase_search_web

Web Search Official Browserbase endpoint: POST /v1/search.

Read read
Parameters
body
Generic call
kosmo integrations:call browserbase.browserbase_search_web '{"body":"example_body"}' --json
Shortcut
kosmo integrations:browserbase browserbase_search_web '{"body":"example_body"}' --json

browserbase.browserbase_sessions_list

List Sessions Official Browserbase endpoint: GET /v1/sessions.

Read read
Parameters
status, q
Generic call
kosmo integrations:call browserbase.browserbase_sessions_list '{"status":"example_status","q":"example_q"}' --json
Shortcut
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 read
Parameters
body
Generic call
kosmo integrations:call browserbase.browserbase_sessions_create '{"body":"example_body"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_sessions_get '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
id, body
Generic call
kosmo integrations:call browserbase.browserbase_sessions_update '{"id":"example_id","body":"example_body"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_sessions_get_debug '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_sessions_get_logs '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
id
Generic call
kosmo integrations:call browserbase.browserbase_sessions_get_recording '{"id":"example_id"}' --json
Shortcut
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 read
Parameters
id, file
Generic call
kosmo integrations:call browserbase.browserbase_sessions_upload_file '{"id":"example_id","file":"example_file"}' --json
Shortcut
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
Schema command
kosmo integrations:schema browserbase.browserbase_contexts_create --json
ParameterTypeRequiredDescription
body object no JSON request body matching the official Browserbase OpenAPI schema.
browserbase.browserbase_contexts_get 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_contexts_get --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_contexts_update 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_contexts_update --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_contexts_delete 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_contexts_delete --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_downloads_list 9 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_downloads_list --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema browserbase.browserbase_downloads_get --json
ParameterTypeRequiredDescription
id string yes The download ID.
browserbase.browserbase_downloads_delete 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_downloads_delete --json
ParameterTypeRequiredDescription
id string yes The download ID to delete.
browserbase.browserbase_extensions_upload 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_extensions_upload --json
ParameterTypeRequiredDescription
file string yes file Provide a local file path for upload.
browserbase.browserbase_extensions_get 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_extensions_get --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_extensions_delete 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_extensions_delete --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_fetch_create 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_fetch_create --json
ParameterTypeRequiredDescription
body object yes JSON request body matching the official Browserbase OpenAPI schema.
browserbase.browserbase_functions_list 2 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_functions_list --json
ParameterTypeRequiredDescription
offset integer no offset
limit integer no limit
browserbase.browserbase_function_builds_list 3 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_function_builds_list --json
ParameterTypeRequiredDescription
offset integer no offset
limit integer no limit
status string no status
browserbase.browserbase_function_builds_get 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_function_builds_get --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_function_builds_get_logs 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_function_builds_get_logs --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_invocations_get 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_invocations_get --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_invocations_get_logs 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_invocations_get_logs --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_function_versions_get 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_function_versions_get --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_function_versions_list_invocations 4 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_function_versions_list_invocations --json
ParameterTypeRequiredDescription
offset integer no offset
limit integer no limit
status string no status
id string yes id
browserbase.browserbase_functions_get 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_functions_get --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_functions_invoke 2 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_functions_invoke --json
ParameterTypeRequiredDescription
id string yes id
body object no JSON request body matching the official Browserbase OpenAPI schema.
browserbase.browserbase_functions_list_versions 3 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_functions_list_versions --json
ParameterTypeRequiredDescription
offset integer no offset
limit integer no limit
id string yes id
browserbase.browserbase_projects_list 0 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_projects_list --json
ParameterTypeRequiredDescription
No parameters.
browserbase.browserbase_projects_get 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_projects_get --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_projects_usage 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_projects_usage --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_search_web 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_search_web --json
ParameterTypeRequiredDescription
body object yes JSON request body matching the official Browserbase OpenAPI schema.
browserbase.browserbase_sessions_list 2 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_sessions_list --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema browserbase.browserbase_sessions_create --json
ParameterTypeRequiredDescription
body object no JSON request body matching the official Browserbase OpenAPI schema.
browserbase.browserbase_sessions_get 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_sessions_get --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_sessions_update 2 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_sessions_update --json
ParameterTypeRequiredDescription
id string yes id
body object yes JSON request body matching the official Browserbase OpenAPI schema.
browserbase.browserbase_sessions_get_debug 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_sessions_get_debug --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_sessions_get_logs 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_sessions_get_logs --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_sessions_get_recording 1 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_sessions_get_recording --json
ParameterTypeRequiredDescription
id string yes id
browserbase.browserbase_sessions_upload_file 2 parameters
Schema command
kosmo integrations:schema browserbase.browserbase_sessions_upload_file --json
ParameterTypeRequiredDescription
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.