Retrain an agent
agent_trainRebuild the agent's knowledge embeddings from its attached knowledge-base entries. Required after every kb_upsert or kb_attach, or the agent answers from stale material — this is the step most easily forgotten. It only re-indexes existing knowledge: it does not change the agent's instructions (agent_upsert) and does not teach it anything not attached via kb_attach. 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>"
},
"name": "agent_train"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | AI agent id, from `agent_list`. |