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 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.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
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.
kosmo integrations:call builder-io.builder_io_list_models '{"limit":1,"offset":1}' --json 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.
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 - Parameters
- limit, offset
kosmo integrations:call builder-io.builder_io_list_models '{"limit":1,"offset":1}' --json 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 - Parameters
- model_id
kosmo integrations:call builder-io.builder_io_get_model '{"model_id":"example_model_id"}' --json 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 - Parameters
- model_name, limit, offset, query, fields
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 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 - Parameters
- content_id
kosmo integrations:call builder-io.builder_io_get_content '{"content_id":"example_content_id"}' --json 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 - Parameters
- model_name, name, data
kosmo integrations:call builder-io.builder_io_create_content '{"model_name":"example_model_name","name":"example_name","data":"example_data"}' --json 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 - Parameters
- limit, offset
kosmo integrations:call builder-io.builder_io_list_symbols '{"limit":1,"offset":1}' --json 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 - Parameters
- none
kosmo integrations:call builder-io.builder_io_get_current_user '{}' --json 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
kosmo integrations:schema builder-io.builder_io_list_models --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema builder-io.builder_io_get_model --json | Parameter | Type | Required | Description |
|---|---|---|---|
model_id | string | yes | The ID or name of the model to retrieve. |
builder-io.builder_io_list_content 5 parameters
kosmo integrations:schema builder-io.builder_io_list_content --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema builder-io.builder_io_get_content --json | Parameter | Type | Required | Description |
|---|---|---|---|
content_id | string | yes | The ID of the content entry to retrieve. |
builder-io.builder_io_create_content 3 parameters
kosmo integrations:schema builder-io.builder_io_create_content --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema builder-io.builder_io_list_symbols --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema builder-io.builder_io_get_current_user --json | Parameter | Type | Required | Description |
|---|---|---|---|
| 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.