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 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.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
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.
kosmo integrations:call bugsnag.bugsnag_api_get '{}' --json 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.
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 - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_api_get '{}' --json kosmo integrations:bugsnag bugsnag_api_get '{}' --json bugsnag.bugsnag_api_post
Call any Bugsnag Data Access API POST endpoint with a JSON payload.
write - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_api_post '{}' --json kosmo integrations:bugsnag bugsnag_api_post '{}' --json bugsnag.bugsnag_api_patch
Call any Bugsnag Data Access API PATCH endpoint with a JSON payload.
write - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_api_patch '{}' --json kosmo integrations:bugsnag bugsnag_api_patch '{}' --json bugsnag.bugsnag_api_delete
Call any Bugsnag Data Access API DELETE endpoint with query parameters.
write - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_api_delete '{}' --json kosmo integrations:bugsnag bugsnag_api_delete '{}' --json bugsnag.bugsnag_get_current_user
Get the currently authenticated Bugsnag user.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_get_current_user '{}' --json kosmo integrations:bugsnag bugsnag_get_current_user '{}' --json bugsnag.bugsnag_list_organizations
List Bugsnag organizations for the authenticated user.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_list_organizations '{}' --json kosmo integrations:bugsnag bugsnag_list_organizations '{}' --json bugsnag.bugsnag_list_organization_projects
List projects for a Bugsnag organization.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_list_organization_projects '{}' --json kosmo integrations:bugsnag bugsnag_list_organization_projects '{}' --json bugsnag.bugsnag_list_projects
List Bugsnag projects visible to the authenticated user.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_list_projects '{}' --json kosmo integrations:bugsnag bugsnag_list_projects '{}' --json bugsnag.bugsnag_get_project
Get details for a Bugsnag project.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_get_project '{}' --json kosmo integrations:bugsnag bugsnag_get_project '{}' --json bugsnag.bugsnag_list_collaborators
List collaborators for a Bugsnag organization.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_list_collaborators '{}' --json kosmo integrations:bugsnag bugsnag_list_collaborators '{}' --json bugsnag.bugsnag_get_collaborator
Get one Bugsnag collaborator.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_get_collaborator '{}' --json kosmo integrations:bugsnag bugsnag_get_collaborator '{}' --json bugsnag.bugsnag_list_teams
List Bugsnag teams for an organization.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_list_teams '{}' --json kosmo integrations:bugsnag bugsnag_list_teams '{}' --json bugsnag.bugsnag_get_team
Get one Bugsnag team.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_get_team '{}' --json kosmo integrations:bugsnag bugsnag_get_team '{}' --json bugsnag.bugsnag_list_errors
List errors for a Bugsnag project.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_list_errors '{}' --json kosmo integrations:bugsnag bugsnag_list_errors '{}' --json bugsnag.bugsnag_get_error
Get details for a Bugsnag error.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_get_error '{}' --json kosmo integrations:bugsnag bugsnag_get_error '{}' --json bugsnag.bugsnag_update_error
Update a Bugsnag error status or assignment.
write - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_update_error '{}' --json kosmo integrations:bugsnag bugsnag_update_error '{}' --json bugsnag.bugsnag_delete_error
Delete a Bugsnag error.
write - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_delete_error '{}' --json kosmo integrations:bugsnag bugsnag_delete_error '{}' --json bugsnag.bugsnag_list_error_events
List events for a specific Bugsnag error.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_list_error_events '{}' --json kosmo integrations:bugsnag bugsnag_list_error_events '{}' --json bugsnag.bugsnag_list_project_events
List events for a Bugsnag project.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_list_project_events '{}' --json kosmo integrations:bugsnag bugsnag_list_project_events '{}' --json bugsnag.bugsnag_get_event
Get details for a Bugsnag event.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_get_event '{}' --json kosmo integrations:bugsnag bugsnag_get_event '{}' --json bugsnag.bugsnag_get_project_trend
Get time-series trend data for a Bugsnag project.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_get_project_trend '{}' --json kosmo integrations:bugsnag bugsnag_get_project_trend '{}' --json bugsnag.bugsnag_list_pivot_values
List Bugsnag pivot values for an error.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_list_pivot_values '{}' --json kosmo integrations:bugsnag bugsnag_list_pivot_values '{}' --json bugsnag.bugsnag_list_project_releases
List releases for a Bugsnag project.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_list_project_releases '{}' --json kosmo integrations:bugsnag bugsnag_list_project_releases '{}' --json bugsnag.bugsnag_get_project_release
Get a Bugsnag project release.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_get_project_release '{}' --json 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 - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_create_organization_event_data_request '{}' --json kosmo integrations:bugsnag bugsnag_create_organization_event_data_request '{}' --json bugsnag.bugsnag_get_organization_event_data_request
Get organization event data request status.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_get_organization_event_data_request '{}' --json 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 - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_create_project_event_data_request '{}' --json kosmo integrations:bugsnag bugsnag_create_project_event_data_request '{}' --json bugsnag.bugsnag_get_project_event_data_request
Get project event data request status.
read - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_get_project_event_data_request '{}' --json 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 - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_notify_error '{}' --json kosmo integrations:bugsnag bugsnag_notify_error '{}' --json bugsnag.bugsnag_notify_build
Notify Bugsnag of a build or release.
write - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_notify_build '{}' --json kosmo integrations:bugsnag bugsnag_notify_build '{}' --json bugsnag.bugsnag_report_session
Report a session to the Bugsnag Session Tracking API.
write - Parameters
- none
kosmo integrations:call bugsnag.bugsnag_report_session '{}' --json 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
kosmo integrations:schema bugsnag.bugsnag_api_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_api_post 0 parameters
kosmo integrations:schema bugsnag.bugsnag_api_post --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_api_patch 0 parameters
kosmo integrations:schema bugsnag.bugsnag_api_patch --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_api_delete 0 parameters
kosmo integrations:schema bugsnag.bugsnag_api_delete --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_get_current_user 0 parameters
kosmo integrations:schema bugsnag.bugsnag_get_current_user --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_list_organizations 0 parameters
kosmo integrations:schema bugsnag.bugsnag_list_organizations --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_list_organization_projects 0 parameters
kosmo integrations:schema bugsnag.bugsnag_list_organization_projects --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_list_projects 0 parameters
kosmo integrations:schema bugsnag.bugsnag_list_projects --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_get_project 0 parameters
kosmo integrations:schema bugsnag.bugsnag_get_project --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_list_collaborators 0 parameters
kosmo integrations:schema bugsnag.bugsnag_list_collaborators --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_get_collaborator 0 parameters
kosmo integrations:schema bugsnag.bugsnag_get_collaborator --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_list_teams 0 parameters
kosmo integrations:schema bugsnag.bugsnag_list_teams --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_get_team 0 parameters
kosmo integrations:schema bugsnag.bugsnag_get_team --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_list_errors 0 parameters
kosmo integrations:schema bugsnag.bugsnag_list_errors --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_get_error 0 parameters
kosmo integrations:schema bugsnag.bugsnag_get_error --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_update_error 0 parameters
kosmo integrations:schema bugsnag.bugsnag_update_error --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_delete_error 0 parameters
kosmo integrations:schema bugsnag.bugsnag_delete_error --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_list_error_events 0 parameters
kosmo integrations:schema bugsnag.bugsnag_list_error_events --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_list_project_events 0 parameters
kosmo integrations:schema bugsnag.bugsnag_list_project_events --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_get_event 0 parameters
kosmo integrations:schema bugsnag.bugsnag_get_event --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_get_project_trend 0 parameters
kosmo integrations:schema bugsnag.bugsnag_get_project_trend --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_list_pivot_values 0 parameters
kosmo integrations:schema bugsnag.bugsnag_list_pivot_values --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_list_project_releases 0 parameters
kosmo integrations:schema bugsnag.bugsnag_list_project_releases --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_get_project_release 0 parameters
kosmo integrations:schema bugsnag.bugsnag_get_project_release --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_create_organization_event_data_request 0 parameters
kosmo integrations:schema bugsnag.bugsnag_create_organization_event_data_request --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_get_organization_event_data_request 0 parameters
kosmo integrations:schema bugsnag.bugsnag_get_organization_event_data_request --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_create_project_event_data_request 0 parameters
kosmo integrations:schema bugsnag.bugsnag_create_project_event_data_request --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_get_project_event_data_request 0 parameters
kosmo integrations:schema bugsnag.bugsnag_get_project_event_data_request --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_notify_error 0 parameters
kosmo integrations:schema bugsnag.bugsnag_notify_error --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_notify_build 0 parameters
kosmo integrations:schema bugsnag.bugsnag_notify_build --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
bugsnag.bugsnag_report_session 0 parameters
kosmo integrations:schema bugsnag.bugsnag_report_session --json | Parameter | Type | Required | Description |
|---|---|---|---|
| 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.