KosmoKrator

data

Open Library CLI for AI Agents

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

Open Library CLI Setup

Open Library can be configured headlessly with `kosmokrator integrations:configure open-library`.

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 open-library --enable --read allow --write ask --json
kosmokrator integrations:doctor open-library --json
kosmokrator integrations:status --json

Credentials

Authentication type: No credentials none. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

No credentials are required.

Command Patterns

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

Generic CLI call
kosmo integrations:call open-library.open_library_search_books '{}' --json
Provider shortcut
kosmo integrations:open-library open_library_search_books '{}' --json

Discovery

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

Discovery commands
kosmo integrations:docs open-library --json
kosmo integrations:docs open-library.open_library_search_books --json
kosmo integrations:schema open-library.open_library_search_books --json
kosmo integrations:search "Open Library" --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.

open-library.open_library_search_books

Search books and works.

Read read
Parameters
none
Generic call
kosmo integrations:call open-library.open_library_search_books '{}' --json
Shortcut
kosmo integrations:open-library open_library_search_books '{}' --json

open-library.open_library_search_authors

Search authors.

Read read
Parameters
none
Generic call
kosmo integrations:call open-library.open_library_search_authors '{}' --json
Shortcut
kosmo integrations:open-library open_library_search_authors '{}' --json

open-library.open_library_work

Get one work by ID.

Read read
Parameters
none
Generic call
kosmo integrations:call open-library.open_library_work '{}' --json
Shortcut
kosmo integrations:open-library open_library_work '{}' --json

open-library.open_library_work_editions

List editions for a work.

Read read
Parameters
none
Generic call
kosmo integrations:call open-library.open_library_work_editions '{}' --json
Shortcut
kosmo integrations:open-library open_library_work_editions '{}' --json

open-library.open_library_work_ratings

Get work ratings.

Read read
Parameters
none
Generic call
kosmo integrations:call open-library.open_library_work_ratings '{}' --json
Shortcut
kosmo integrations:open-library open_library_work_ratings '{}' --json

open-library.open_library_work_bookshelves

Get work bookshelf counts.

Read read
Parameters
none
Generic call
kosmo integrations:call open-library.open_library_work_bookshelves '{}' --json
Shortcut
kosmo integrations:open-library open_library_work_bookshelves '{}' --json

open-library.open_library_edition

Get one edition by ID.

Read read
Parameters
none
Generic call
kosmo integrations:call open-library.open_library_edition '{}' --json
Shortcut
kosmo integrations:open-library open_library_edition '{}' --json

open-library.open_library_isbn

Get an edition by ISBN.

Read read
Parameters
none
Generic call
kosmo integrations:call open-library.open_library_isbn '{}' --json
Shortcut
kosmo integrations:open-library open_library_isbn '{}' --json

open-library.open_library_books

Look up books by ISBN, LCCN, OCLC, or OLID bibkeys.

Read read
Parameters
none
Generic call
kosmo integrations:call open-library.open_library_books '{}' --json
Shortcut
kosmo integrations:open-library open_library_books '{}' --json

open-library.open_library_author

Get one author by ID.

Read read
Parameters
none
Generic call
kosmo integrations:call open-library.open_library_author '{}' --json
Shortcut
kosmo integrations:open-library open_library_author '{}' --json

open-library.open_library_author_works

List works by an author.

Read read
Parameters
none
Generic call
kosmo integrations:call open-library.open_library_author_works '{}' --json
Shortcut
kosmo integrations:open-library open_library_author_works '{}' --json

open-library.open_library_subject

List works for a subject.

Read read
Parameters
none
Generic call
kosmo integrations:call open-library.open_library_subject '{}' --json
Shortcut
kosmo integrations:open-library open_library_subject '{}' --json

open-library.open_library_recent_changes

List recent Open Library changes.

Read read
Parameters
none
Generic call
kosmo integrations:call open-library.open_library_recent_changes '{}' --json
Shortcut
kosmo integrations:open-library open_library_recent_changes '{}' --json

open-library.open_library_cover_url

Build a cover image URL.

Read read
Parameters
none
Generic call
kosmo integrations:call open-library.open_library_cover_url '{}' --json
Shortcut
kosmo integrations:open-library open_library_cover_url '{}' --json

Function Schemas

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

open-library.open_library_search_books 0 parameters
Schema command
kosmo integrations:schema open-library.open_library_search_books --json
ParameterTypeRequiredDescription
No parameters.
open-library.open_library_search_authors 0 parameters
Schema command
kosmo integrations:schema open-library.open_library_search_authors --json
ParameterTypeRequiredDescription
No parameters.
open-library.open_library_work 0 parameters
Schema command
kosmo integrations:schema open-library.open_library_work --json
ParameterTypeRequiredDescription
No parameters.
open-library.open_library_work_editions 0 parameters
Schema command
kosmo integrations:schema open-library.open_library_work_editions --json
ParameterTypeRequiredDescription
No parameters.
open-library.open_library_work_ratings 0 parameters
Schema command
kosmo integrations:schema open-library.open_library_work_ratings --json
ParameterTypeRequiredDescription
No parameters.
open-library.open_library_work_bookshelves 0 parameters
Schema command
kosmo integrations:schema open-library.open_library_work_bookshelves --json
ParameterTypeRequiredDescription
No parameters.
open-library.open_library_edition 0 parameters
Schema command
kosmo integrations:schema open-library.open_library_edition --json
ParameterTypeRequiredDescription
No parameters.
open-library.open_library_isbn 0 parameters
Schema command
kosmo integrations:schema open-library.open_library_isbn --json
ParameterTypeRequiredDescription
No parameters.
open-library.open_library_books 0 parameters
Schema command
kosmo integrations:schema open-library.open_library_books --json
ParameterTypeRequiredDescription
No parameters.
open-library.open_library_author 0 parameters
Schema command
kosmo integrations:schema open-library.open_library_author --json
ParameterTypeRequiredDescription
No parameters.
open-library.open_library_author_works 0 parameters
Schema command
kosmo integrations:schema open-library.open_library_author_works --json
ParameterTypeRequiredDescription
No parameters.
open-library.open_library_subject 0 parameters
Schema command
kosmo integrations:schema open-library.open_library_subject --json
ParameterTypeRequiredDescription
No parameters.
open-library.open_library_recent_changes 0 parameters
Schema command
kosmo integrations:schema open-library.open_library_recent_changes --json
ParameterTypeRequiredDescription
No parameters.
open-library.open_library_cover_url 0 parameters
Schema command
kosmo integrations:schema open-library.open_library_cover_url --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.