KosmoKrator

productivity

BrowserStack CLI for AI Agents

Use the BrowserStack CLI from KosmoKrator to call BrowserStack tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

BrowserStack CLI Setup

BrowserStack can be configured headlessly with `kosmokrator integrations:configure browserstack`.

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 browserstack --set username="$BROWSERSTACK_USERNAME" --set access_key="$BROWSERSTACK_ACCESS_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor browserstack --json
kosmokrator integrations:status --json

Credentials

Authentication type: basic auth basic_auth. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
username BROWSERSTACK_USERNAME Text text yes Username
access_key BROWSERSTACK_ACCESS_KEY Secret secret yes Access Key
url BROWSERSTACK_URL Text text no Automate API URL
cloud_url BROWSERSTACK_CLOUD_URL Text text no App Automate API URL

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call browserstack.browserstack_get_plan '{}' --json
Provider shortcut
kosmo integrations:browserstack browserstack_get_plan '{}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs browserstack --json
kosmo integrations:docs browserstack.browserstack_get_plan --json
kosmo integrations:schema browserstack.browserstack_get_plan --json
kosmo integrations:search "BrowserStack" --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.

browserstack.browserstack_get_plan

Get Automate plan and parallel session details.

Read read
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_get_plan '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_get_plan '{}' --json

browserstack.browserstack_list_browsers

List Automate browsers and devices.

Read read
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_list_browsers '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_list_browsers '{}' --json

browserstack.browserstack_list_projects

List Automate projects.

Read read
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_list_projects '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_list_projects '{}' --json

browserstack.browserstack_get_project

Get one Automate project.

Read read
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_get_project '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_get_project '{}' --json

browserstack.browserstack_update_project

Update Automate project details.

Write write
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_update_project '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_update_project '{}' --json

browserstack.browserstack_delete_project

Delete one Automate project.

Write write
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_delete_project '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_delete_project '{}' --json

browserstack.browserstack_list_builds

List Automate builds.

Read read
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_list_builds '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_list_builds '{}' --json

browserstack.browserstack_update_build

Update Automate build name or tag.

Write write
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_update_build '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_update_build '{}' --json

browserstack.browserstack_delete_build

Delete one Automate build.

Write write
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_delete_build '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_delete_build '{}' --json

browserstack.browserstack_delete_builds

Delete multiple Automate builds.

Write write
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_delete_builds '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_delete_builds '{}' --json

browserstack.browserstack_list_build_sessions

List sessions in an Automate build.

Read read
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_list_build_sessions '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_list_build_sessions '{}' --json

browserstack.browserstack_get_session

Get one Automate session.

Read read
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_get_session '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_get_session '{}' --json

browserstack.browserstack_update_session

Update one Automate session.

Write write
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_update_session '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_update_session '{}' --json

browserstack.browserstack_delete_session

Delete one Automate session.

Write write
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_delete_session '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_delete_session '{}' --json

browserstack.browserstack_get_session_logs

Get text logs for one session.

Read read
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_get_session_logs '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_get_session_logs '{}' --json

browserstack.browserstack_get_session_network_logs

Get HAR network logs for one session.

Read read
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_get_session_network_logs '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_get_session_network_logs '{}' --json

browserstack.browserstack_upload_app

Upload an App Automate app by public URL.

Write write
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_upload_app '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_upload_app '{}' --json

browserstack.browserstack_list_recent_apps

List recently uploaded App Automate apps.

Read read
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_list_recent_apps '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_list_recent_apps '{}' --json

browserstack.browserstack_delete_app

Delete an uploaded App Automate app.

Write write
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_delete_app '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_delete_app '{}' --json

browserstack.browserstack_api_get

Call a safe relative BrowserStack GET path.

Read read
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_api_get '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_api_get '{}' --json

browserstack.browserstack_api_post

Call a safe relative BrowserStack POST path.

Write write
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_api_post '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_api_post '{}' --json

browserstack.browserstack_api_put

Call a safe relative BrowserStack PUT path.

Write write
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_api_put '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_api_put '{}' --json

browserstack.browserstack_api_delete

Call a safe relative BrowserStack DELETE path.

Write write
Parameters
none
Generic call
kosmo integrations:call browserstack.browserstack_api_delete '{}' --json
Shortcut
kosmo integrations:browserstack browserstack_api_delete '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

browserstack.browserstack_get_plan 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_get_plan --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_list_browsers 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_list_browsers --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_list_projects 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_list_projects --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_get_project 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_get_project --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_update_project 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_update_project --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_delete_project 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_delete_project --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_list_builds 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_list_builds --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_update_build 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_update_build --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_delete_build 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_delete_build --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_delete_builds 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_delete_builds --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_list_build_sessions 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_list_build_sessions --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_get_session 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_get_session --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_update_session 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_update_session --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_delete_session 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_delete_session --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_get_session_logs 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_get_session_logs --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_get_session_network_logs 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_get_session_network_logs --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_upload_app 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_upload_app --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_list_recent_apps 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_list_recent_apps --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_delete_app 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_delete_app --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_api_get 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_api_get --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_api_post 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_api_post --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_api_put 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_api_put --json
ParameterTypeRequiredDescription
No parameters.
browserstack.browserstack_api_delete 0 parameters
Schema command
kosmo integrations:schema browserstack.browserstack_api_delete --json
ParameterTypeRequiredDescription
No parameters.

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.