KosmoKrator

productivity

Bugsnag CLI for AI Agents

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

Bugsnag CLI Setup

Bugsnag can be configured headlessly with `kosmokrator integrations:configure bugsnag`.

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 bugsnag --set api_token="$BUGSNAG_API_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor bugsnag --json
kosmokrator integrations:status --json

Credentials

Authentication type: API token api_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
api_token BUGSNAG_API_TOKEN Secret secret yes API Token

Command Patterns

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

Generic CLI call
kosmo integrations:call bugsnag.bugsnag_api_get '{}' --json
Provider shortcut
kosmo integrations:bugsnag bugsnag_api_get '{}' --json

Discovery

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

Discovery commands
kosmo integrations:docs bugsnag --json
kosmo integrations:docs bugsnag.bugsnag_api_get --json
kosmo integrations:schema bugsnag.bugsnag_api_get --json
kosmo integrations:search "Bugsnag" --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.

bugsnag.bugsnag_api_get

Call any Bugsnag Data Access API GET endpoint with query parameters.

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

bugsnag.bugsnag_api_post

Call any Bugsnag Data Access API POST endpoint with a JSON payload.

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

bugsnag.bugsnag_api_patch

Call any Bugsnag Data Access API PATCH endpoint with a JSON payload.

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

bugsnag.bugsnag_api_delete

Call any Bugsnag Data Access API DELETE endpoint with query parameters.

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

bugsnag.bugsnag_get_current_user

Get the currently authenticated Bugsnag user.

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

bugsnag.bugsnag_list_organizations

List Bugsnag organizations for the authenticated user.

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

bugsnag.bugsnag_list_organization_projects

List projects for a Bugsnag organization.

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

bugsnag.bugsnag_list_projects

List Bugsnag projects visible to the authenticated user.

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

bugsnag.bugsnag_get_project

Get details for a Bugsnag project.

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

bugsnag.bugsnag_list_collaborators

List collaborators for a Bugsnag organization.

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

bugsnag.bugsnag_get_collaborator

Get one Bugsnag collaborator.

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

bugsnag.bugsnag_list_teams

List Bugsnag teams for an organization.

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

bugsnag.bugsnag_get_team

Get one Bugsnag team.

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

bugsnag.bugsnag_list_errors

List errors for a Bugsnag project.

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

bugsnag.bugsnag_get_error

Get details for a Bugsnag error.

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

bugsnag.bugsnag_update_error

Update a Bugsnag error status or assignment.

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

bugsnag.bugsnag_delete_error

Delete a Bugsnag error.

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

bugsnag.bugsnag_list_error_events

List events for a specific Bugsnag error.

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

bugsnag.bugsnag_list_project_events

List events for a Bugsnag project.

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

bugsnag.bugsnag_get_event

Get details for a Bugsnag event.

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

bugsnag.bugsnag_get_project_trend

Get time-series trend data for a Bugsnag project.

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

bugsnag.bugsnag_list_pivot_values

List Bugsnag pivot values for an error.

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

bugsnag.bugsnag_list_project_releases

List releases for a Bugsnag project.

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

bugsnag.bugsnag_get_project_release

Get a Bugsnag project release.

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

bugsnag.bugsnag_create_organization_event_data_request

Create an organization-wide event data request for privacy workflows.

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

bugsnag.bugsnag_get_organization_event_data_request

Get organization event data request status.

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

bugsnag.bugsnag_create_project_event_data_request

Create a project event data request for privacy workflows.

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

bugsnag.bugsnag_get_project_event_data_request

Get project event data request status.

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

bugsnag.bugsnag_notify_error

Report an error event to the Bugsnag Error Reporting API.

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

bugsnag.bugsnag_notify_build

Notify Bugsnag of a build or release.

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

bugsnag.bugsnag_report_session

Report a session to the Bugsnag Session Tracking API.

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

Function Schemas

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

bugsnag.bugsnag_api_get 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_api_get --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_api_post 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_api_post --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_api_patch 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_api_patch --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_api_delete 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_api_delete --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_get_current_user 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_get_current_user --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_list_organizations 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_list_organizations --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_list_organization_projects 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_list_organization_projects --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_list_projects 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_list_projects --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_get_project 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_get_project --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_list_collaborators 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_list_collaborators --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_get_collaborator 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_get_collaborator --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_list_teams 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_list_teams --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_get_team 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_get_team --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_list_errors 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_list_errors --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_get_error 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_get_error --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_update_error 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_update_error --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_delete_error 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_delete_error --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_list_error_events 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_list_error_events --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_list_project_events 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_list_project_events --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_get_event 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_get_event --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_get_project_trend 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_get_project_trend --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_list_pivot_values 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_list_pivot_values --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_list_project_releases 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_list_project_releases --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_get_project_release 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_get_project_release --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_create_organization_event_data_request 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_create_organization_event_data_request --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_get_organization_event_data_request 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_get_organization_event_data_request --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_create_project_event_data_request 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_create_project_event_data_request --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_get_project_event_data_request 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_get_project_event_data_request --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_notify_error 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_notify_error --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_notify_build 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_notify_build --json
ParameterTypeRequiredDescription
No parameters.
bugsnag.bugsnag_report_session 0 parameters
Schema command
kosmo integrations:schema bugsnag.bugsnag_report_session --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.