chroma_add_documents
Add text documents with unique IDs and optional metadata to a Chroma collection for storage and retrieval.
Instructions
Add documents to a Chroma collection.
Args:
collection_name: Name of the collection to add documents to
documents: List of text documents to add
ids: List of IDs for the documents (required)
metadatas: Optional list of metadata dictionaries for each document
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collection_name": "<collection_name>",
"documents": "<documents>",
"ids": "<ids>"
},
"name": "chroma_add_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| documents | Yes | ||
| metadatas | No | ||
| collection_name | Yes |