associate_knowledge_to_agent
Link knowledge base documents to an AI agent by replacing its current document associations with specified IDs. Use to update or clear agent knowledge sources.
Instructions
Associates (links) knowledge base document IDs to an agent. Replaces the current list of knowledgeDocumentIds on the agent. Use list_knowledge_documents to get valid document IDs.
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": {
"agentId": "<agentId>",
"documentIds": "<documentIds>"
},
"name": "associate_knowledge_to_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | The MongoDB ID of the agent to update | |
| documentIds | Yes | Array of knowledge document IDs to associate with the agent. Pass an empty array to remove all. |