Attach knowledge to an agent
kb_attachInclude or exclude a knowledge entry for one agent. Run agent_train afterwards or the change has no effect on answers. Scoped to one agent: it neither creates the entry (kb_upsert) nor deletes it, and there is no tool to delete a knowledge entry. Requires the "Agents" permission on the plan.
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>",
"kbId": "<kbId>"
},
"name": "kb_attach"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kbId | Yes | Knowledge-base entry id, from `kb_list`. | |
| value | No | true attaches, false detaches. | |
| agentId | Yes | AI agent id, from `agent_list`. |