KosmoKrator

data

Storyblok CLI for Coding Agents

Use the Storyblok CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 4 read 3 write Bearer token auth

Storyblok CLI for Coding Agents

Let coding agents discover schemas and execute integration functions through CLI commands or MCP.

Use this pattern when another coding agent needs exact commands and schema discovery. The Storyblok CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Storyblok CLI for Coding Agents
kosmokrator integrations:configure storyblok --set access_token="$STORYBLOK_ACCESS_TOKEN" --set space_id="$STORYBLOK_SPACE_ID" --enable --read allow --write ask --json
kosmo integrations:call storyblok.storyblok_list_stories '{"page":1,"per_page":1,"search":"example_search","sort_by":"example_sort_by"}' --json

Discovery Before Execution

Agents and scripts can inspect Storyblok docs and schemas before choosing a function.

kosmo integrations:docs storyblok --json
kosmo integrations:docs storyblok.storyblok_list_stories --json
kosmo integrations:schema storyblok.storyblok_list_stories --json
kosmo integrations:search "Storyblok" --json
kosmo integrations:list --json

Useful Storyblok CLI Functions

FunctionTypeParametersDescription
storyblok.storyblok_list_stories Read page, per_page, search, sort_by List stories in the configured Storyblok space. Supports pagination, search, and sorting.
storyblok.storyblok_get_story Read id Retrieve a single Storyblok story by its numeric ID, including full content.
storyblok.storyblok_create_story Write name, slug, content, parent_id, is_startpage, tag_list Create a new story in the configured Storyblok space. Requires a name, slug, and content object.
storyblok.storyblok_update_story Write id, content, name, slug, tag_list Update an existing Storyblok story. Provide the story ID and the fields to update (e.g., content, name, slug).
storyblok.storyblok_delete_story Write id Delete a story from the configured Storyblok space by its numeric ID. This action is irreversible.
storyblok.storyblok_list_components Read none List all component schemas defined in the configured Storyblok space. Useful for understanding available content structures.
storyblok.storyblok_get_current_user Read none List all available Storyblok spaces for the authenticated user. Useful as a health check or to discover space IDs.

Automation Notes

Related Storyblok CLI Pages