KosmoKrator

productivity

Airtable CLI for AI Agents

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

Airtable CLI Setup

Airtable can be configured headlessly with `kosmokrator integrations:configure airtable`.

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 airtable --set access_token="$AIRTABLE_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor airtable --json
kosmokrator integrations:status --json

Credentials

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

KeyEnv varTypeRequiredLabel
access_token AIRTABLE_ACCESS_TOKEN Secret secret yes Access Token

Command Patterns

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

Generic CLI call
kosmo integrations:call airtable.airtable_api_get '{}' --json
Provider shortcut
kosmo integrations:airtable airtable_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 airtable --json
kosmo integrations:docs airtable.airtable_api_get --json
kosmo integrations:schema airtable.airtable_api_get --json
kosmo integrations:search "Airtable" --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.

airtable.airtable_api_get

Call any Airtable Web API GET endpoint with query parameters.

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

airtable.airtable_api_post

Call any Airtable Web API POST endpoint with a JSON payload.

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

airtable.airtable_api_patch

Call any Airtable Web API PATCH endpoint with a JSON payload.

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

airtable.airtable_api_delete

Call any Airtable Web API DELETE endpoint with query parameters.

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

airtable.airtable_get_current_user

Get the currently authenticated Airtable user.

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

airtable.airtable_list_bases

List Airtable bases accessible to the token.

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

airtable.airtable_get_base_schema

Get table, field, and view schema metadata for a base.

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

airtable.airtable_create_table

Create a table in an Airtable base.

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

airtable.airtable_update_table

Update table metadata in an Airtable base.

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

airtable.airtable_create_field

Create a field in an Airtable table.

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

airtable.airtable_update_field

Update field metadata in an Airtable table.

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

airtable.airtable_list_views

List views by reading Airtable base schema metadata.

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

airtable.airtable_list_records

List records from an Airtable table.

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

airtable.airtable_get_record

Get a single Airtable record.

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

airtable.airtable_create_record

Create one Airtable record.

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

airtable.airtable_create_records

Create multiple Airtable records in one request.

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

airtable.airtable_update_record

Update one Airtable record.

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

airtable.airtable_update_records

Update multiple Airtable records in one request.

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

airtable.airtable_upsert_records

Create or update records using Airtable performUpsert.

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

airtable.airtable_delete_record

Delete one Airtable record.

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

airtable.airtable_delete_records

Delete multiple Airtable records using records[] query parameters.

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

airtable.airtable_list_comments

List comments for an Airtable record.

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

airtable.airtable_create_comment

Create a comment on an Airtable record.

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

airtable.airtable_update_comment

Update a comment on an Airtable record.

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

airtable.airtable_delete_comment

Delete a comment from an Airtable record.

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

airtable.airtable_list_webhooks

List Airtable webhooks for a base.

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

airtable.airtable_create_webhook

Create an Airtable webhook for a base.

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

airtable.airtable_delete_webhook

Delete an Airtable webhook.

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

airtable.airtable_list_webhook_payloads

List webhook payloads for an Airtable webhook.

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

Function Schemas

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

airtable.airtable_api_get 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_api_get --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_api_post 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_api_post --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_api_patch 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_api_patch --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_api_delete 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_api_delete --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_get_current_user 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_get_current_user --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_list_bases 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_list_bases --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_get_base_schema 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_get_base_schema --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_create_table 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_create_table --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_update_table 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_update_table --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_create_field 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_create_field --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_update_field 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_update_field --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_list_views 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_list_views --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_list_records 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_list_records --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_get_record 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_get_record --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_create_record 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_create_record --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_create_records 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_create_records --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_update_record 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_update_record --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_update_records 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_update_records --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_upsert_records 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_upsert_records --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_delete_record 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_delete_record --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_delete_records 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_delete_records --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_list_comments 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_list_comments --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_create_comment 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_create_comment --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_update_comment 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_update_comment --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_delete_comment 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_delete_comment --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_list_webhooks 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_list_webhooks --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_create_webhook 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_create_webhook --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_delete_webhook 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_delete_webhook --json
ParameterTypeRequiredDescription
No parameters.
airtable.airtable_list_webhook_payloads 0 parameters
Schema command
kosmo integrations:schema airtable.airtable_list_webhook_payloads --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.