productivity
Rollbar CLI for AI Agents
Use the Rollbar CLI from KosmoKrator to call Rollbar tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.Rollbar CLI Setup
Rollbar can be configured headlessly with `kosmokrator integrations:configure rollbar`.
# 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 rollbar --set access_token="$ROLLBAR_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor rollbar --json
kosmokrator integrations:status --json Credentials
Authentication type: Bearer token bearer_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
access_token | ROLLBAR_ACCESS_TOKEN | Secret secret | yes | Access Token |
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call rollbar.rollbar_list_projects '{"limit":1,"offset":1}' --json kosmo integrations:rollbar rollbar_list_projects '{"limit":1,"offset":1}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs rollbar --json
kosmo integrations:docs rollbar.rollbar_list_projects --json
kosmo integrations:schema rollbar.rollbar_list_projects --json
kosmo integrations:search "Rollbar" --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.
rollbar.rollbar_list_projects
List all projects in your Rollbar account. Returns project IDs, names, and status information.
read - Parameters
- limit, offset
kosmo integrations:call rollbar.rollbar_list_projects '{"limit":1,"offset":1}' --json kosmo integrations:rollbar rollbar_list_projects '{"limit":1,"offset":1}' --json rollbar.rollbar_get_project
Get details for a specific Rollbar project by its ID.
read - Parameters
- id
kosmo integrations:call rollbar.rollbar_get_project '{"id":1}' --json kosmo integrations:rollbar rollbar_get_project '{"id":1}' --json rollbar.rollbar_list_items
List error items in Rollbar with optional filters for project, level, status, and environment.
read - Parameters
- project_id, limit, offset, level, status, environment
kosmo integrations:call rollbar.rollbar_list_items '{"project_id":1,"limit":1,"offset":1,"level":"example_level","status":"example_status","environment":"example_environment"}' --json kosmo integrations:rollbar rollbar_list_items '{"project_id":1,"limit":1,"offset":1,"level":"example_level","status":"example_status","environment":"example_environment"}' --json rollbar.rollbar_get_item
Get details for a specific Rollbar error item by its ID.
read - Parameters
- id
kosmo integrations:call rollbar.rollbar_get_item '{"id":1}' --json kosmo integrations:rollbar rollbar_get_item '{"id":1}' --json rollbar.rollbar_list_deploys
List recent deploys across your Rollbar account, optionally filtered by environment.
read - Parameters
- environment, limit, page
kosmo integrations:call rollbar.rollbar_list_deploys '{"environment":"example_environment","limit":1,"page":1}' --json kosmo integrations:rollbar rollbar_list_deploys '{"environment":"example_environment","limit":1,"page":1}' --json rollbar.rollbar_list_teams
List all teams in your Rollbar account.
read - Parameters
- limit, offset
kosmo integrations:call rollbar.rollbar_list_teams '{"limit":1,"offset":1}' --json kosmo integrations:rollbar rollbar_list_teams '{"limit":1,"offset":1}' --json rollbar.rollbar_get_current_user
Get details about the currently authenticated Rollbar user.
read - Parameters
- none
kosmo integrations:call rollbar.rollbar_get_current_user '{}' --json kosmo integrations:rollbar rollbar_get_current_user '{}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
rollbar.rollbar_list_projects 2 parameters
kosmo integrations:schema rollbar.rollbar_list_projects --json | Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | no | Maximum number of projects to return (default: 20). |
offset | integer | no | Offset for pagination (default: 0). |
rollbar.rollbar_get_project 1 parameters
kosmo integrations:schema rollbar.rollbar_get_project --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | yes | The project ID. |
rollbar.rollbar_list_items 6 parameters
kosmo integrations:schema rollbar.rollbar_list_items --json | Parameter | Type | Required | Description |
|---|---|---|---|
project_id | integer | no | Filter by project ID. |
limit | integer | no | Maximum number of items to return (default: 20). |
offset | integer | no | Offset for pagination (default: 0). |
level | string | no | Filter by level: debug, info, warning, error, critical. |
status | string | no | Filter by status: active, resolved, muted. |
environment | string | no | Filter by environment name (e.g., production, staging). |
rollbar.rollbar_get_item 1 parameters
kosmo integrations:schema rollbar.rollbar_get_item --json | Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | yes | The item (counter) ID. |
rollbar.rollbar_list_deploys 3 parameters
kosmo integrations:schema rollbar.rollbar_list_deploys --json | Parameter | Type | Required | Description |
|---|---|---|---|
environment | string | no | Filter by environment name (e.g., production, staging). |
limit | integer | no | Maximum number of deploys to return (default: 20). |
page | integer | no | Page number for pagination (default: 1). |
rollbar.rollbar_list_teams 2 parameters
kosmo integrations:schema rollbar.rollbar_list_teams --json | Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | no | Maximum number of teams to return (default: 20). |
offset | integer | no | Offset for pagination (default: 0). |
rollbar.rollbar_get_current_user 0 parameters
kosmo integrations:schema rollbar.rollbar_get_current_user --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.