agentKnowledgeBaseActions
Manage an agent's knowledge-base files by attaching or detaching them with an action, agent ID, and file IDs, defining which resources the agent can reference.
Instructions
Attach knowledge-base files to an agent, or detach them.
Set action to pick what to do.
attach: Attach multiple knowledge-base files to an agent.
detach: Detach multiple knowledge-base files from an agent.
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": {
"action": "<action>",
"agent_id": "<agent_id>",
"file_ids": "<file_ids>"
},
"name": "agentKnowledgeBaseActions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do: attach, detach. | |
| agent_id | Yes | ID of the agent to attach files to. | |
| file_ids | Yes | List of knowledge-base file IDs to attach. | |
| when_to_use | No | Only for `attach`. Instruction to the agent on when to consult these files. |