Set an agent's knowledge
set_agent_knowledgeChoose which knowledge an AI agent may use. Send the full list of ids from list_knowledge; an empty list lets it use everything. The next call uses the change. Admins only. Ask the user to confirm before calling this tool.
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>",
"knowledge_ids": "<knowledge_ids>"
},
"name": "set_agent_knowledge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Agent id from list_agents | |
| workspace_id | No | Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace. | |
| knowledge_ids | Yes | Every knowledge id the agent should use; empty for everything |