data
Baserow CLI for AI Agents
Use the Baserow CLI from KosmoKrator to call Baserow tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.Baserow CLI Setup
Baserow can be configured headlessly with `kosmokrator integrations:configure baserow`.
# 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 baserow --set access_token="$BASEROW_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor baserow --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 | BASEROW_ACCESS_TOKEN | Secret secret | yes | Access Token |
auth_scheme | BASEROW_AUTH_SCHEME | Select select | no | Auth Scheme |
url | BASEROW_URL | URL url | no | Baserow API URL |
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call baserow.baserow_api_delete '{"path":"example_path","payload":"example_payload","query":"example_query"}' --json kosmo integrations:baserow baserow_api_delete '{"path":"example_path","payload":"example_payload","query":"example_query"}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs baserow --json
kosmo integrations:docs baserow.baserow_api_delete --json
kosmo integrations:schema baserow.baserow_api_delete --json
kosmo integrations:search "Baserow" --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.
baserow.baserow_api_delete
Call a relative Baserow API path with DELETE for supported endpoints not covered by a dedicated tool.
read - Parameters
- path, payload, query
kosmo integrations:call baserow.baserow_api_delete '{"path":"example_path","payload":"example_payload","query":"example_query"}' --json kosmo integrations:baserow baserow_api_delete '{"path":"example_path","payload":"example_payload","query":"example_query"}' --json baserow.baserow_api_get
Call a relative Baserow API path with GET for supported endpoints not covered by a dedicated tool.
read - Parameters
- path, query
kosmo integrations:call baserow.baserow_api_get '{"path":"example_path","query":"example_query"}' --json kosmo integrations:baserow baserow_api_get '{"path":"example_path","query":"example_query"}' --json baserow.baserow_api_patch
Call a relative Baserow API path with PATCH for supported endpoints not covered by a dedicated tool.
read - Parameters
- path, payload, query
kosmo integrations:call baserow.baserow_api_patch '{"path":"example_path","payload":"example_payload","query":"example_query"}' --json kosmo integrations:baserow baserow_api_patch '{"path":"example_path","payload":"example_payload","query":"example_query"}' --json baserow.baserow_api_post
Call a relative Baserow API path with POST for supported endpoints not covered by a dedicated tool.
read - Parameters
- path, payload, query
kosmo integrations:call baserow.baserow_api_post '{"path":"example_path","payload":"example_payload","query":"example_query"}' --json kosmo integrations:baserow baserow_api_post '{"path":"example_path","payload":"example_payload","query":"example_query"}' --json baserow.baserow_batch_create
Create multiple rows in a Baserow table in a single request.
read - Parameters
- table_id, records
kosmo integrations:call baserow.baserow_batch_create '{"table_id":1,"records":"example_records"}' --json kosmo integrations:baserow baserow_batch_create '{"table_id":1,"records":"example_records"}' --json baserow.baserow_batch_delete
Delete multiple rows from a Baserow table in a single request.
read - Parameters
- table_id, row_ids
kosmo integrations:call baserow.baserow_batch_delete '{"table_id":1,"row_ids":"example_row_ids"}' --json kosmo integrations:baserow baserow_batch_delete '{"table_id":1,"row_ids":"example_row_ids"}' --json baserow.baserow_batch_update
Update multiple rows in a Baserow table in a single request. Each row must include its "id".
read - Parameters
- table_id, records
kosmo integrations:call baserow.baserow_batch_update '{"table_id":1,"records":"example_records"}' --json kosmo integrations:baserow baserow_batch_update '{"table_id":1,"records":"example_records"}' --json baserow.baserow_create_field
Create a field in a Baserow table. Requires an account token with schema permissions.
write - Parameters
- table_id, payload
kosmo integrations:call baserow.baserow_create_field '{"table_id":1,"payload":"example_payload"}' --json kosmo integrations:baserow baserow_create_field '{"table_id":1,"payload":"example_payload"}' --json baserow.baserow_create_row
Create a new row in a Baserow database table. Provide field data as a JSON object mapping field names to values.
write - Parameters
- table_id, data
kosmo integrations:call baserow.baserow_create_row '{"table_id":1,"data":"example_data"}' --json kosmo integrations:baserow baserow_create_row '{"table_id":1,"data":"example_data"}' --json baserow.baserow_delete_field
Delete a Baserow field by field ID. This removes the field and its values.
write - Parameters
- field_id
kosmo integrations:call baserow.baserow_delete_field '{"field_id":1}' --json kosmo integrations:baserow baserow_delete_field '{"field_id":1}' --json baserow.baserow_delete_row
Delete a row from a Baserow database table. This action is permanent and cannot be undone.
write - Parameters
- table_id, row_id
kosmo integrations:call baserow.baserow_delete_row '{"table_id":1,"row_id":1}' --json kosmo integrations:baserow baserow_delete_row '{"table_id":1,"row_id":1}' --json baserow.baserow_get_current_user
Get the currently authenticated Baserow user profile. Returns user details including name, email, and workspace memberships.
read - Parameters
- none
kosmo integrations:call baserow.baserow_get_current_user '{}' --json kosmo integrations:baserow baserow_get_current_user '{}' --json baserow.baserow_get_field
Get metadata for a single Baserow field by field ID.
read - Parameters
- field_id
kosmo integrations:call baserow.baserow_get_field '{"field_id":1}' --json kosmo integrations:baserow baserow_get_field '{"field_id":1}' --json baserow.baserow_get_row
Get a single row from a Baserow database table by its row ID. Returns all field values for the row.
read - Parameters
- table_id, row_id
kosmo integrations:call baserow.baserow_get_row '{"table_id":1,"row_id":1}' --json kosmo integrations:baserow baserow_get_row '{"table_id":1,"row_id":1}' --json baserow.baserow_get_table
Get details for a single Baserow table by its ID.
read - Parameters
- table_id
kosmo integrations:call baserow.baserow_get_table '{"table_id":1}' --json kosmo integrations:baserow baserow_get_table '{"table_id":1}' --json baserow.baserow_list_all_tables
List every Baserow table visible to the configured database token.
read - Parameters
- params
kosmo integrations:call baserow.baserow_list_all_tables '{"params":"example_params"}' --json kosmo integrations:baserow baserow_list_all_tables '{"params":"example_params"}' --json baserow.baserow_list_database_tables
List tables inside a specific Baserow database.
read - Parameters
- database_id
kosmo integrations:call baserow.baserow_list_database_tables '{"database_id":1}' --json kosmo integrations:baserow baserow_list_database_tables '{"database_id":1}' --json baserow.baserow_list_databases
List all databases (applications) in the Baserow workspace. Returns database names, IDs, and types for navigation.
read - Parameters
- page, size
kosmo integrations:call baserow.baserow_list_databases '{"page":1,"size":1}' --json kosmo integrations:baserow baserow_list_databases '{"page":1,"size":1}' --json baserow.baserow_list_fields
List all fields (columns) and their types in a Baserow table.
read - Parameters
- table_id
kosmo integrations:call baserow.baserow_list_fields '{"table_id":1}' --json kosmo integrations:baserow baserow_list_fields '{"table_id":1}' --json baserow.baserow_list_rows
List rows in a Baserow table with optional filtering, searching, sorting, and pagination.
read - Parameters
- table_id, limit, offset, search, order_by, filter_type, filters, field_ids
kosmo integrations:call baserow.baserow_list_rows '{"table_id":1,"limit":1,"offset":1,"search":"example_search","order_by":"example_order_by","filter_type":"example_filter_type","filters":"example_filters","field_ids":"example_field_ids"}' --json kosmo integrations:baserow baserow_list_rows '{"table_id":1,"limit":1,"offset":1,"search":"example_search","order_by":"example_order_by","filter_type":"example_filter_type","filters":"example_filters","field_ids":"example_field_ids"}' --json baserow.baserow_list_tables
List rows in a Baserow database table. Supports pagination and optional filters to narrow results by field values.
read - Parameters
- table_id, page, size, filters
kosmo integrations:call baserow.baserow_list_tables '{"table_id":1,"page":1,"size":1,"filters":"example_filters"}' --json kosmo integrations:baserow baserow_list_tables '{"table_id":1,"page":1,"size":1,"filters":"example_filters"}' --json baserow.baserow_move_row
Move a Baserow row before another row or to the end of a table.
write - Parameters
- table_id, row_id, before_id
kosmo integrations:call baserow.baserow_move_row '{"table_id":1,"row_id":1,"before_id":1}' --json kosmo integrations:baserow baserow_move_row '{"table_id":1,"row_id":1,"before_id":1}' --json baserow.baserow_update_field
Update a Baserow field definition. Requires an account token with schema permissions.
write - Parameters
- field_id, payload
kosmo integrations:call baserow.baserow_update_field '{"field_id":1,"payload":"example_payload"}' --json kosmo integrations:baserow baserow_update_field '{"field_id":1,"payload":"example_payload"}' --json baserow.baserow_update_row
Update an existing row in a Baserow database table. Provide field data as a JSON object with field names and new values. Only specified fields are updated.
write - Parameters
- table_id, row_id, data
kosmo integrations:call baserow.baserow_update_row '{"table_id":1,"row_id":1,"data":"example_data"}' --json kosmo integrations:baserow baserow_update_row '{"table_id":1,"row_id":1,"data":"example_data"}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
baserow.baserow_api_delete 3 parameters
kosmo integrations:schema baserow.baserow_api_delete --json | Parameter | Type | Required | Description |
|---|---|---|---|
path | string | yes | Relative API path. |
payload | object | no | Optional JSON request body. |
query | object | no | Optional query parameters. |
baserow.baserow_api_get 2 parameters
kosmo integrations:schema baserow.baserow_api_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
path | string | yes | Relative API path, for example /api/database/fields/table/42/. |
query | object | no | Optional query parameters. |
baserow.baserow_api_patch 3 parameters
kosmo integrations:schema baserow.baserow_api_patch --json | Parameter | Type | Required | Description |
|---|---|---|---|
path | string | yes | Relative API path. |
payload | object | no | JSON request body. |
query | object | no | Optional query parameters. |
baserow.baserow_api_post 3 parameters
kosmo integrations:schema baserow.baserow_api_post --json | Parameter | Type | Required | Description |
|---|---|---|---|
path | string | yes | Relative API path. |
payload | object | no | JSON request body. |
query | object | no | Optional query parameters. |
baserow.baserow_batch_create 2 parameters
kosmo integrations:schema baserow.baserow_batch_create --json | Parameter | Type | Required | Description |
|---|---|---|---|
table_id | integer | yes | The Baserow table ID. |
records | string | yes | JSON array of row objects, e.g. [{"field_1": "a"}, {"field_1": "b"}]. Each object is flat key-value pairs. |
baserow.baserow_batch_delete 2 parameters
kosmo integrations:schema baserow.baserow_batch_delete --json | Parameter | Type | Required | Description |
|---|---|---|---|
table_id | integer | yes | The Baserow table ID. |
row_ids | string | yes | JSON array of row IDs to delete, e.g. [1, 2, 3]. |
baserow.baserow_batch_update 2 parameters
kosmo integrations:schema baserow.baserow_batch_update --json | Parameter | Type | Required | Description |
|---|---|---|---|
table_id | integer | yes | The Baserow table ID. |
records | string | yes | JSON array of row objects to update. Each must include an "id" key, e.g. [{"id": 1, "field_1": "new"}, {"id": 2, "field_1": "new"}]. |
baserow.baserow_create_field 2 parameters
kosmo integrations:schema baserow.baserow_create_field --json | Parameter | Type | Required | Description |
|---|---|---|---|
table_id | integer | yes | The Baserow table ID. |
payload | object | yes | Field payload, for example {"name":"Status","type":"single_select"}. |
baserow.baserow_create_row 2 parameters
kosmo integrations:schema baserow.baserow_create_row --json | Parameter | Type | Required | Description |
|---|---|---|---|
table_id | integer | yes | The Baserow table ID to create the row in. |
data | object | yes | Row data as a JSON object with field names (or field IDs) as keys and their values. Example: {"Name": "John", "Email": "john@example.com"}. |
baserow.baserow_delete_field 1 parameters
kosmo integrations:schema baserow.baserow_delete_field --json | Parameter | Type | Required | Description |
|---|---|---|---|
field_id | integer | yes | The Baserow field ID. |
baserow.baserow_delete_row 2 parameters
kosmo integrations:schema baserow.baserow_delete_row --json | Parameter | Type | Required | Description |
|---|---|---|---|
table_id | integer | yes | The Baserow table ID. |
row_id | integer | yes | The ID of the row to delete. |
baserow.baserow_get_current_user 0 parameters
kosmo integrations:schema baserow.baserow_get_current_user --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
baserow.baserow_get_field 1 parameters
kosmo integrations:schema baserow.baserow_get_field --json | Parameter | Type | Required | Description |
|---|---|---|---|
field_id | integer | yes | The Baserow field ID. |
baserow.baserow_get_row 2 parameters
kosmo integrations:schema baserow.baserow_get_row --json | Parameter | Type | Required | Description |
|---|---|---|---|
table_id | integer | yes | The Baserow table ID. |
row_id | integer | yes | The ID of the row to retrieve. |
baserow.baserow_get_table 1 parameters
kosmo integrations:schema baserow.baserow_get_table --json | Parameter | Type | Required | Description |
|---|---|---|---|
table_id | integer | yes | The Baserow table ID. |
baserow.baserow_list_all_tables 1 parameters
kosmo integrations:schema baserow.baserow_list_all_tables --json | Parameter | Type | Required | Description |
|---|---|---|---|
params | object | no | Optional Baserow query parameters. |
baserow.baserow_list_database_tables 1 parameters
kosmo integrations:schema baserow.baserow_list_database_tables --json | Parameter | Type | Required | Description |
|---|---|---|---|
database_id | integer | yes | The Baserow database ID. |
baserow.baserow_list_databases 2 parameters
kosmo integrations:schema baserow.baserow_list_databases --json | Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | no | Page number (1-based). Defaults to 1. |
size | integer | no | Number of databases per page. Defaults to 100. |
baserow.baserow_list_fields 1 parameters
kosmo integrations:schema baserow.baserow_list_fields --json | Parameter | Type | Required | Description |
|---|---|---|---|
table_id | integer | yes | The Baserow table ID. |
baserow.baserow_list_rows 8 parameters
kosmo integrations:schema baserow.baserow_list_rows --json | Parameter | Type | Required | Description |
|---|---|---|---|
table_id | integer | yes | The Baserow table ID. |
limit | integer | no | Maximum number of rows to return (default: 100). |
offset | integer | no | Number of rows to skip for pagination. |
search | string | no | Search term to filter rows by. |
order_by | string | no | Field name to order by. Prefix with "-" for descending. |
filter_type | string | no | How to combine filters: "AND" or "OR". |
filters | string | no | JSON array of filter objects, e.g. [{"field": 123, "type": "equal", "value": "test"}]. |
field_ids | string | no | Comma-separated list of field IDs to include in the response. |
baserow.baserow_list_tables 4 parameters
kosmo integrations:schema baserow.baserow_list_tables --json | Parameter | Type | Required | Description |
|---|---|---|---|
table_id | integer | yes | The Baserow table ID to list rows from. |
page | integer | no | Page number (1-based). Defaults to 1. |
size | integer | no | Number of rows per page. Defaults to 100. |
filters | object | no | Optional Baserow filter parameters as key-value pairs (e.g., {"search": "term"}, {"filter__field_1__equal": "value"}). |
baserow.baserow_move_row 3 parameters
kosmo integrations:schema baserow.baserow_move_row --json | Parameter | Type | Required | Description |
|---|---|---|---|
table_id | integer | yes | The Baserow table ID. |
row_id | integer | yes | The row ID to move. |
before_id | integer | no | Optional row ID to move this row before. Omit to move to the end. |
baserow.baserow_update_field 2 parameters
kosmo integrations:schema baserow.baserow_update_field --json | Parameter | Type | Required | Description |
|---|---|---|---|
field_id | integer | yes | The Baserow field ID. |
payload | object | yes | Field update payload. |
baserow.baserow_update_row 3 parameters
kosmo integrations:schema baserow.baserow_update_row --json | Parameter | Type | Required | Description |
|---|---|---|---|
table_id | integer | yes | The Baserow table ID. |
row_id | integer | yes | The ID of the row to update. |
data | object | yes | Updated field data as a JSON object with field names (or field IDs) as keys and their new values. Example: {"Name": "Jane", "Status": "Active"}. |
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.