data
arXiv CLI for AI Agents
Use the arXiv CLI from KosmoKrator to call arXiv tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.arXiv CLI Setup
arXiv can be configured headlessly with `kosmokrator integrations:configure arxiv`.
# 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 arxiv --enable --read allow --write ask --json
kosmokrator integrations:doctor arxiv --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 arxiv.arxiv_search_papers '{"search_query":"example_search_query","id_list":"example_id_list","start":1,"max_results":1,"sortBy":"example_sortBy","sortOrder":"example_sortOrder"}' --json kosmo integrations:arxiv arxiv_search_papers '{"search_query":"example_search_query","id_list":"example_id_list","start":1,"max_results":1,"sortBy":"example_sortBy","sortOrder":"example_sortOrder"}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs arxiv --json
kosmo integrations:docs arxiv.arxiv_search_papers --json
kosmo integrations:schema arxiv.arxiv_search_papers --json
kosmo integrations:search "arXiv" --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.
arxiv.arxiv_search_papers
Search arXiv papers using the official Atom API. Use arXiv query syntax such as all:electron, ti:"diffusion model", au:"Smith", cat:cs.AI, and boolean operators.
read - Parameters
- search_query, id_list, start, max_results, sortBy, sortOrder
kosmo integrations:call arxiv.arxiv_search_papers '{"search_query":"example_search_query","id_list":"example_id_list","start":1,"max_results":1,"sortBy":"example_sortBy","sortOrder":"example_sortOrder"}' --json kosmo integrations:arxiv arxiv_search_papers '{"search_query":"example_search_query","id_list":"example_id_list","start":1,"max_results":1,"sortBy":"example_sortBy","sortOrder":"example_sortOrder"}' --json arxiv.arxiv_get_papers
Retrieve arXiv paper metadata by one or more arXiv IDs.
read - Parameters
- id_list
kosmo integrations:call arxiv.arxiv_get_papers '{"id_list":"example_id_list"}' --json kosmo integrations:arxiv arxiv_get_papers '{"id_list":"example_id_list"}' --json arxiv.arxiv_search_by_author
Search arXiv papers by author name.
read - Parameters
- none
kosmo integrations:call arxiv.arxiv_search_by_author '{}' --json kosmo integrations:arxiv arxiv_search_by_author '{}' --json arxiv.arxiv_search_by_title
Search arXiv papers by title text.
read - Parameters
- none
kosmo integrations:call arxiv.arxiv_search_by_title '{}' --json kosmo integrations:arxiv arxiv_search_by_title '{}' --json arxiv.arxiv_search_by_category
Search recent arXiv papers by category code.
read - Parameters
- none
kosmo integrations:call arxiv.arxiv_search_by_category '{}' --json kosmo integrations:arxiv arxiv_search_by_category '{}' --json arxiv.arxiv_search_recent
Search arXiv with newest submissions first.
read - Parameters
- none
kosmo integrations:call arxiv.arxiv_search_recent '{}' --json kosmo integrations:arxiv arxiv_search_recent '{}' --json arxiv.arxiv_oai_identify
Read arXiv OAI-PMH repository metadata.
read - Parameters
- none
kosmo integrations:call arxiv.arxiv_oai_identify '{}' --json kosmo integrations:arxiv arxiv_oai_identify '{}' --json arxiv.arxiv_oai_list_metadata_formats
List OAI-PMH metadata formats supported by arXiv.
read - Parameters
- none
kosmo integrations:call arxiv.arxiv_oai_list_metadata_formats '{}' --json kosmo integrations:arxiv arxiv_oai_list_metadata_formats '{}' --json arxiv.arxiv_oai_list_sets
List arXiv OAI-PMH sets.
read - Parameters
- none
kosmo integrations:call arxiv.arxiv_oai_list_sets '{}' --json kosmo integrations:arxiv arxiv_oai_list_sets '{}' --json arxiv.arxiv_oai_list_identifiers
List OAI-PMH identifiers and datestamps.
read - Parameters
- none
kosmo integrations:call arxiv.arxiv_oai_list_identifiers '{}' --json kosmo integrations:arxiv arxiv_oai_list_identifiers '{}' --json arxiv.arxiv_oai_list_records
List OAI-PMH metadata records.
read - Parameters
- none
kosmo integrations:call arxiv.arxiv_oai_list_records '{}' --json kosmo integrations:arxiv arxiv_oai_list_records '{}' --json arxiv.arxiv_oai_get_record
Retrieve one OAI-PMH metadata record by identifier.
read - Parameters
- none
kosmo integrations:call arxiv.arxiv_oai_get_record '{}' --json kosmo integrations:arxiv arxiv_oai_get_record '{}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
arxiv.arxiv_search_papers 6 parameters
kosmo integrations:schema arxiv.arxiv_search_papers --json | Parameter | Type | Required | Description |
|---|---|---|---|
search_query | string | no | arXiv search expression such as all:electron, ti:"transformer", au:"Smith", or cat:cs.AI. |
id_list | array | no | Optional arXiv IDs used alone or as a filter with search_query. |
start | integer | no | Zero-based offset of the first returned result. |
max_results | integer | no | Maximum results to return. arXiv recommends small slices for repeated calls. |
sortBy | string | no | Sort field. |
sortOrder | string | no | Sort direction. |
arxiv.arxiv_get_papers 1 parameters
kosmo integrations:schema arxiv.arxiv_get_papers --json | Parameter | Type | Required | Description |
|---|---|---|---|
id_list | array | yes | arXiv IDs such as 2103.15348 or 2103.15348v1. |
arxiv.arxiv_search_by_author 0 parameters
kosmo integrations:schema arxiv.arxiv_search_by_author --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
arxiv.arxiv_search_by_title 0 parameters
kosmo integrations:schema arxiv.arxiv_search_by_title --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
arxiv.arxiv_search_by_category 0 parameters
kosmo integrations:schema arxiv.arxiv_search_by_category --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
arxiv.arxiv_search_recent 0 parameters
kosmo integrations:schema arxiv.arxiv_search_recent --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
arxiv.arxiv_oai_identify 0 parameters
kosmo integrations:schema arxiv.arxiv_oai_identify --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
arxiv.arxiv_oai_list_metadata_formats 0 parameters
kosmo integrations:schema arxiv.arxiv_oai_list_metadata_formats --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
arxiv.arxiv_oai_list_sets 0 parameters
kosmo integrations:schema arxiv.arxiv_oai_list_sets --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
arxiv.arxiv_oai_list_identifiers 0 parameters
kosmo integrations:schema arxiv.arxiv_oai_list_identifiers --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
arxiv.arxiv_oai_list_records 0 parameters
kosmo integrations:schema arxiv.arxiv_oai_list_records --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
arxiv.arxiv_oai_get_record 0 parameters
kosmo integrations:schema arxiv.arxiv_oai_get_record --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.