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.

Builder.io CLI Setup

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

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 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 reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
api_key BUILDER_IO_API_KEY Secret secret yes API Key

Command Patterns

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

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

Discovery

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

Discovery commands
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

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.

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.

Read read
Parameters
limit, offset
Generic call
kosmo integrations:call builder-io.builder_io_list_models '{"limit":1,"offset":1}' --json
Shortcut
kosmo integrations:builder-io builder_io_list_models '{"limit":1,"offset":1}' --json

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.

Read read
Parameters
model_id
Generic call
kosmo integrations:call builder-io.builder_io_get_model '{"model_id":"example_model_id"}' --json
Shortcut
kosmo integrations:builder-io builder_io_get_model '{"model_id":"example_model_id"}' --json

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.

Read read
Parameters
model_name, limit, offset, query, fields
Generic 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
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

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

Read read
Parameters
content_id
Generic call
kosmo integrations:call builder-io.builder_io_get_content '{"content_id":"example_content_id"}' --json
Shortcut
kosmo integrations:builder-io builder_io_get_content '{"content_id":"example_content_id"}' --json

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.

Write write
Parameters
model_name, name, data
Generic call
kosmo integrations:call builder-io.builder_io_create_content '{"model_name":"example_model_name","name":"example_name","data":"example_data"}' --json
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

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

Read read
Parameters
limit, offset
Generic call
kosmo integrations:call builder-io.builder_io_list_symbols '{"limit":1,"offset":1}' --json
Shortcut
kosmo integrations:builder-io builder_io_list_symbols '{"limit":1,"offset":1}' --json

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.

Read read
Parameters
none
Generic call
kosmo integrations:call builder-io.builder_io_get_current_user '{}' --json
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 2 parameters
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 1 parameters
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 5 parameters
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 1 parameters
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 3 parameters
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 2 parameters
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 0 parameters
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.