KosmoKrator

data

Builder.io CLI for AI Agents

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

7 functions 6 read 1 write API key auth

Builder.io CLI Setup

Builder.io can be configured headlessly with `kosmokrator integrations:configure builder-io`.

# 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 builder-io --set api_key="$BUILDER_IO_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor builder-io --json
kosmokrator integrations:status --json

Credentials

Authentication type: API key api_key. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
api_key BUILDER_IO_API_KEY Secret secret yes API Key

Call Builder.io Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call builder-io.builder_io_list_models '{
  "limit": 1,
  "offset": 1
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:builder-io builder_io_list_models '{
  "limit": 1,
  "offset": 1
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs builder-io --json
kosmo integrations:docs builder-io.builder_io_list_models --json
kosmo integrations:schema builder-io.builder_io_list_models --json
kosmo integrations:search "Builder.io" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Builder.io.

builder-io.builder_io_list_models

Read read

List all models in the Builder.io space. Optionally control pagination with limit and offset. Returns model IDs, names, kinds, and metadata.

Parameters
limit, offset

Generic CLI call

kosmo integrations:call builder-io.builder_io_list_models '{"limit":1,"offset":1}' --json

Provider shortcut

kosmo integrations:builder-io builder_io_list_models '{"limit":1,"offset":1}' --json

builder-io.builder_io_get_model

Read read

Get detailed information about a specific Builder.io model by its ID or name. Returns the model definition including fields, kind, and metadata.

Parameters
model_id

Generic CLI call

kosmo integrations:call builder-io.builder_io_get_model '{"model_id":"example_model_id"}' --json

Provider shortcut

kosmo integrations:builder-io builder_io_get_model '{"model_id":"example_model_id"}' --json

builder-io.builder_io_list_content

Read read

List content entries for a specific Builder.io model. Optionally control pagination with limit and offset, or filter with a query string. Returns entry IDs, names, and data.

Parameters
model_name, limit, offset, query, fields

Generic CLI call

kosmo integrations:call builder-io.builder_io_list_content '{"model_name":"example_model_name","limit":1,"offset":1,"query":"example_query","fields":"example_fields"}' --json

Provider shortcut

kosmo integrations:builder-io builder_io_list_content '{"model_name":"example_model_name","limit":1,"offset":1,"query":"example_query","fields":"example_fields"}' --json

builder-io.builder_io_get_content

Read read

Get detailed information about a specific Builder.io content entry by its ID. Returns the full entry data, model reference, and timestamps.

Parameters
content_id

Generic CLI call

kosmo integrations:call builder-io.builder_io_get_content '{"content_id":"example_content_id"}' --json

Provider shortcut

kosmo integrations:builder-io builder_io_get_content '{"content_id":"example_content_id"}' --json

builder-io.builder_io_create_content

Write write

Create a new content entry in Builder.io for a given model. Provide the model name and a JSON object with the content data. The entry is created as a draft by default.

Parameters
model_name, name, data

Generic CLI call

kosmo integrations:call builder-io.builder_io_create_content '{"model_name":"example_model_name","name":"example_name","data":"example_data"}' --json

Provider shortcut

kosmo integrations:builder-io builder_io_create_content '{"model_name":"example_model_name","name":"example_name","data":"example_data"}' --json

builder-io.builder_io_list_symbols

Read read

List all symbols (reusable components) in the Builder.io space. Optionally control pagination with limit and offset. Returns symbol IDs, names, and metadata.

Parameters
limit, offset

Generic CLI call

kosmo integrations:call builder-io.builder_io_list_symbols '{"limit":1,"offset":1}' --json

Provider shortcut

kosmo integrations:builder-io builder_io_list_symbols '{"limit":1,"offset":1}' --json

builder-io.builder_io_get_current_user

Read read

Get information about the currently authenticated Builder.io user. Returns the user's name, email, and account details.

Parameters
none

Generic CLI call

kosmo integrations:call builder-io.builder_io_get_current_user '{}' --json

Provider shortcut

kosmo integrations:builder-io builder_io_get_current_user '{}' --json

Function Schemas

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

builder-io.builder_io_list_models

List all models in the Builder.io space. Optionally control pagination with limit and offset. Returns model IDs, names, kinds, and metadata.

Operation
Read read
Schema command
kosmo integrations:schema builder-io.builder_io_list_models --json
ParameterTypeRequiredDescription
limit integer no Maximum number of models to return.
offset integer no Number of models to skip for pagination.

builder-io.builder_io_get_model

Get detailed information about a specific Builder.io model by its ID or name. Returns the model definition including fields, kind, and metadata.

Operation
Read read
Schema command
kosmo integrations:schema builder-io.builder_io_get_model --json
ParameterTypeRequiredDescription
model_id string yes The ID or name of the model to retrieve.

builder-io.builder_io_list_content

List content entries for a specific Builder.io model. Optionally control pagination with limit and offset, or filter with a query string. Returns entry IDs, names, and data.

Operation
Read read
Schema command
kosmo integrations:schema builder-io.builder_io_list_content --json
ParameterTypeRequiredDescription
model_name string yes The model name to list content for (e.g. "page", "blog-post").
limit integer no Maximum number of entries to return.
offset integer no Number of entries to skip for pagination.
query string no Query string to filter content entries.
fields string no Comma-separated list of fields to include in the response.

builder-io.builder_io_get_content

Get detailed information about a specific Builder.io content entry by its ID. Returns the full entry data, model reference, and timestamps.

Operation
Read read
Schema command
kosmo integrations:schema builder-io.builder_io_get_content --json
ParameterTypeRequiredDescription
content_id string yes The ID of the content entry to retrieve.

builder-io.builder_io_create_content

Create a new content entry in Builder.io for a given model. Provide the model name and a JSON object with the content data. The entry is created as a draft by default.

Operation
Write write
Schema command
kosmo integrations:schema builder-io.builder_io_create_content --json
ParameterTypeRequiredDescription
model_name string yes The model name for the new content entry (e.g. "page", "blog-post").
name string yes The name/title of the new content entry.
data string yes JSON object of content data. E.g. {"blocks": [], "title": "My Page"}.

builder-io.builder_io_list_symbols

List all symbols (reusable components) in the Builder.io space. Optionally control pagination with limit and offset. Returns symbol IDs, names, and metadata.

Operation
Read read
Schema command
kosmo integrations:schema builder-io.builder_io_list_symbols --json
ParameterTypeRequiredDescription
limit integer no Maximum number of symbols to return.
offset integer no Number of symbols to skip for pagination.

builder-io.builder_io_get_current_user

Get information about the currently authenticated Builder.io user. Returns the user's name, email, and account details.

Operation
Read read
Schema command
kosmo integrations:schema builder-io.builder_io_get_current_user --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.