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 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.
kosmo integrations:call open-library.open_library_search_books '{}' --json 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.
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 - Parameters
- none
kosmo integrations:call open-library.open_library_search_books '{}' --json kosmo integrations:open-library open_library_search_books '{}' --json open-library.open_library_search_authors
Search authors.
read - Parameters
- none
kosmo integrations:call open-library.open_library_search_authors '{}' --json kosmo integrations:open-library open_library_search_authors '{}' --json open-library.open_library_work
Get one work by ID.
read - Parameters
- none
kosmo integrations:call open-library.open_library_work '{}' --json kosmo integrations:open-library open_library_work '{}' --json open-library.open_library_work_editions
List editions for a work.
read - Parameters
- none
kosmo integrations:call open-library.open_library_work_editions '{}' --json kosmo integrations:open-library open_library_work_editions '{}' --json open-library.open_library_work_ratings
Get work ratings.
read - Parameters
- none
kosmo integrations:call open-library.open_library_work_ratings '{}' --json kosmo integrations:open-library open_library_work_ratings '{}' --json open-library.open_library_work_bookshelves
Get work bookshelf counts.
read - Parameters
- none
kosmo integrations:call open-library.open_library_work_bookshelves '{}' --json kosmo integrations:open-library open_library_work_bookshelves '{}' --json open-library.open_library_edition
Get one edition by ID.
read - Parameters
- none
kosmo integrations:call open-library.open_library_edition '{}' --json kosmo integrations:open-library open_library_edition '{}' --json open-library.open_library_isbn
Get an edition by ISBN.
read - Parameters
- none
kosmo integrations:call open-library.open_library_isbn '{}' --json kosmo integrations:open-library open_library_isbn '{}' --json open-library.open_library_books
Look up books by ISBN, LCCN, OCLC, or OLID bibkeys.
read - Parameters
- none
kosmo integrations:call open-library.open_library_books '{}' --json kosmo integrations:open-library open_library_books '{}' --json open-library.open_library_author
Get one author by ID.
read - Parameters
- none
kosmo integrations:call open-library.open_library_author '{}' --json kosmo integrations:open-library open_library_author '{}' --json open-library.open_library_author_works
List works by an author.
read - Parameters
- none
kosmo integrations:call open-library.open_library_author_works '{}' --json kosmo integrations:open-library open_library_author_works '{}' --json open-library.open_library_subject
List works for a subject.
read - Parameters
- none
kosmo integrations:call open-library.open_library_subject '{}' --json kosmo integrations:open-library open_library_subject '{}' --json open-library.open_library_recent_changes
List recent Open Library changes.
read - Parameters
- none
kosmo integrations:call open-library.open_library_recent_changes '{}' --json kosmo integrations:open-library open_library_recent_changes '{}' --json open-library.open_library_cover_url
Build a cover image URL.
read - Parameters
- none
kosmo integrations:call open-library.open_library_cover_url '{}' --json 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
kosmo integrations:schema open-library.open_library_search_books --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
open-library.open_library_search_authors 0 parameters
kosmo integrations:schema open-library.open_library_search_authors --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
open-library.open_library_work 0 parameters
kosmo integrations:schema open-library.open_library_work --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
open-library.open_library_work_editions 0 parameters
kosmo integrations:schema open-library.open_library_work_editions --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
open-library.open_library_work_ratings 0 parameters
kosmo integrations:schema open-library.open_library_work_ratings --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
open-library.open_library_work_bookshelves 0 parameters
kosmo integrations:schema open-library.open_library_work_bookshelves --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
open-library.open_library_edition 0 parameters
kosmo integrations:schema open-library.open_library_edition --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
open-library.open_library_isbn 0 parameters
kosmo integrations:schema open-library.open_library_isbn --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
open-library.open_library_books 0 parameters
kosmo integrations:schema open-library.open_library_books --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
open-library.open_library_author 0 parameters
kosmo integrations:schema open-library.open_library_author --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
open-library.open_library_author_works 0 parameters
kosmo integrations:schema open-library.open_library_author_works --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
open-library.open_library_subject 0 parameters
kosmo integrations:schema open-library.open_library_subject --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
open-library.open_library_recent_changes 0 parameters
kosmo integrations:schema open-library.open_library_recent_changes --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
open-library.open_library_cover_url 0 parameters
kosmo integrations:schema open-library.open_library_cover_url --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.