Give an agent a knowledge base
set_agent_knowledgeLet an agent search one knowledge base (from list_knowledge_bases), replacing any it had. Pass knowledge_base_id null to remove it. The answer has previous, for undo.
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": {
"agent_id": "<agent_id>"
},
"name": "set_agent_knowledge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent to change. | |
| knowledge_base_id | No | The knowledge base, or null to remove it. |