data
Milvus CLI for Headless Automation
Use the Milvus CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 5 read 2 write API key auth
Milvus CLI for Headless Automation
Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.
Use headless automation when another tool needs a stable local command surface. The Milvus CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Milvus CLI for Headless Automation
kosmokrator integrations:configure milvus --set api_key="$MILVUS_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call milvus.milvus_list_collections '{"limit":1,"offset":1}' --json Discovery Before Execution
Agents and scripts can inspect Milvus docs and schemas before choosing a function.
kosmo integrations:docs milvus --json
kosmo integrations:docs milvus.milvus_list_collections --json
kosmo integrations:schema milvus.milvus_list_collections --json
kosmo integrations:search "Milvus" --json
kosmo integrations:list --json Useful Milvus CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
milvus.milvus_list_collections | Read | limit, offset | List all vector collections in Milvus. Returns collection names and details that can be used for further operations. |
milvus.milvus_get_collection | Read | collection_name | Get details of a specific Milvus collection by its name, including schema and description. |
milvus.milvus_create_collection | Write | name, dimension, description, params | Create a new vector collection in Milvus. A collection requires a name and the embedding dimension size. |
milvus.milvus_insert_documents | Write | collection_name, data | Insert documents with embedding vectors into a Milvus collection. Each document requires a vector and an optional ID. |
milvus.milvus_search_documents | Read | collection_name, vector, limit, output_fields, filter | Search for similar documents in a Milvus collection using a query vector. Returns the most similar documents ranked by distance or similarity. |
milvus.milvus_get_collection_stats | Read | collection_name | Get statistics for a Milvus collection, including row count and index information. |
milvus.milvus_get_health | Read | none | Check the health status of the Milvus vector database server. Returns health and version information. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.