KosmoKrator

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, 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 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.

KeyEnv varTypeRequiredLabel
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.

Generic CLI call
kosmo integrations:call baserow.baserow_api_delete '{"path":"example_path","payload":"example_payload","query":"example_query"}' --json
Provider shortcut
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.

Discovery commands
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 read
Parameters
path, payload, query
Generic call
kosmo integrations:call baserow.baserow_api_delete '{"path":"example_path","payload":"example_payload","query":"example_query"}' --json
Shortcut
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 read
Parameters
path, query
Generic call
kosmo integrations:call baserow.baserow_api_get '{"path":"example_path","query":"example_query"}' --json
Shortcut
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 read
Parameters
path, payload, query
Generic call
kosmo integrations:call baserow.baserow_api_patch '{"path":"example_path","payload":"example_payload","query":"example_query"}' --json
Shortcut
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 read
Parameters
path, payload, query
Generic call
kosmo integrations:call baserow.baserow_api_post '{"path":"example_path","payload":"example_payload","query":"example_query"}' --json
Shortcut
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 read
Parameters
table_id, records
Generic call
kosmo integrations:call baserow.baserow_batch_create '{"table_id":1,"records":"example_records"}' --json
Shortcut
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 read
Parameters
table_id, row_ids
Generic call
kosmo integrations:call baserow.baserow_batch_delete '{"table_id":1,"row_ids":"example_row_ids"}' --json
Shortcut
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 read
Parameters
table_id, records
Generic call
kosmo integrations:call baserow.baserow_batch_update '{"table_id":1,"records":"example_records"}' --json
Shortcut
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 write
Parameters
table_id, payload
Generic call
kosmo integrations:call baserow.baserow_create_field '{"table_id":1,"payload":"example_payload"}' --json
Shortcut
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 write
Parameters
table_id, data
Generic call
kosmo integrations:call baserow.baserow_create_row '{"table_id":1,"data":"example_data"}' --json
Shortcut
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 write
Parameters
field_id
Generic call
kosmo integrations:call baserow.baserow_delete_field '{"field_id":1}' --json
Shortcut
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 write
Parameters
table_id, row_id
Generic call
kosmo integrations:call baserow.baserow_delete_row '{"table_id":1,"row_id":1}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call baserow.baserow_get_current_user '{}' --json
Shortcut
kosmo integrations:baserow baserow_get_current_user '{}' --json

baserow.baserow_get_field

Get metadata for a single Baserow field by field ID.

Read read
Parameters
field_id
Generic call
kosmo integrations:call baserow.baserow_get_field '{"field_id":1}' --json
Shortcut
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 read
Parameters
table_id, row_id
Generic call
kosmo integrations:call baserow.baserow_get_row '{"table_id":1,"row_id":1}' --json
Shortcut
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 read
Parameters
table_id
Generic call
kosmo integrations:call baserow.baserow_get_table '{"table_id":1}' --json
Shortcut
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 read
Parameters
params
Generic call
kosmo integrations:call baserow.baserow_list_all_tables '{"params":"example_params"}' --json
Shortcut
kosmo integrations:baserow baserow_list_all_tables '{"params":"example_params"}' --json

baserow.baserow_list_database_tables

List tables inside a specific Baserow database.

Read read
Parameters
database_id
Generic call
kosmo integrations:call baserow.baserow_list_database_tables '{"database_id":1}' --json
Shortcut
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 read
Parameters
page, size
Generic call
kosmo integrations:call baserow.baserow_list_databases '{"page":1,"size":1}' --json
Shortcut
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 read
Parameters
table_id
Generic call
kosmo integrations:call baserow.baserow_list_fields '{"table_id":1}' --json
Shortcut
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 read
Parameters
table_id, limit, offset, search, order_by, filter_type, filters, field_ids
Generic call
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
Shortcut
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 read
Parameters
table_id, page, size, filters
Generic call
kosmo integrations:call baserow.baserow_list_tables '{"table_id":1,"page":1,"size":1,"filters":"example_filters"}' --json
Shortcut
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 write
Parameters
table_id, row_id, before_id
Generic call
kosmo integrations:call baserow.baserow_move_row '{"table_id":1,"row_id":1,"before_id":1}' --json
Shortcut
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 write
Parameters
field_id, payload
Generic call
kosmo integrations:call baserow.baserow_update_field '{"field_id":1,"payload":"example_payload"}' --json
Shortcut
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 write
Parameters
table_id, row_id, data
Generic call
kosmo integrations:call baserow.baserow_update_row '{"table_id":1,"row_id":1,"data":"example_data"}' --json
Shortcut
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
Schema command
kosmo integrations:schema baserow.baserow_api_delete --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema baserow.baserow_api_get --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema baserow.baserow_api_patch --json
ParameterTypeRequiredDescription
path string yes Relative API path.
payload object no JSON request body.
query object no Optional query parameters.
baserow.baserow_api_post 3 parameters
Schema command
kosmo integrations:schema baserow.baserow_api_post --json
ParameterTypeRequiredDescription
path string yes Relative API path.
payload object no JSON request body.
query object no Optional query parameters.
baserow.baserow_batch_create 2 parameters
Schema command
kosmo integrations:schema baserow.baserow_batch_create --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema baserow.baserow_batch_delete --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema baserow.baserow_batch_update --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema baserow.baserow_create_field --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema baserow.baserow_create_row --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema baserow.baserow_delete_field --json
ParameterTypeRequiredDescription
field_id integer yes The Baserow field ID.
baserow.baserow_delete_row 2 parameters
Schema command
kosmo integrations:schema baserow.baserow_delete_row --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema baserow.baserow_get_current_user --json
ParameterTypeRequiredDescription
No parameters.
baserow.baserow_get_field 1 parameters
Schema command
kosmo integrations:schema baserow.baserow_get_field --json
ParameterTypeRequiredDescription
field_id integer yes The Baserow field ID.
baserow.baserow_get_row 2 parameters
Schema command
kosmo integrations:schema baserow.baserow_get_row --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema baserow.baserow_get_table --json
ParameterTypeRequiredDescription
table_id integer yes The Baserow table ID.
baserow.baserow_list_all_tables 1 parameters
Schema command
kosmo integrations:schema baserow.baserow_list_all_tables --json
ParameterTypeRequiredDescription
params object no Optional Baserow query parameters.
baserow.baserow_list_database_tables 1 parameters
Schema command
kosmo integrations:schema baserow.baserow_list_database_tables --json
ParameterTypeRequiredDescription
database_id integer yes The Baserow database ID.
baserow.baserow_list_databases 2 parameters
Schema command
kosmo integrations:schema baserow.baserow_list_databases --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema baserow.baserow_list_fields --json
ParameterTypeRequiredDescription
table_id integer yes The Baserow table ID.
baserow.baserow_list_rows 8 parameters
Schema command
kosmo integrations:schema baserow.baserow_list_rows --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema baserow.baserow_list_tables --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema baserow.baserow_move_row --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema baserow.baserow_update_field --json
ParameterTypeRequiredDescription
field_id integer yes The Baserow field ID.
payload object yes Field update payload.
baserow.baserow_update_row 3 parameters
Schema command
kosmo integrations:schema baserow.baserow_update_row --json
ParameterTypeRequiredDescription
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.