Add or update knowledge
kb_upsertAdd source material for agents. Type URL crawls a page, TEXT stores pasted content. Three steps, and skipping either of the last two leaves the agent unchanged: add it here, attach it with kb_attach, then rebuild with agent_train. Storing material does not change how the agent writes — that is agent_upsert instructions. 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": {
"type": "<type>"
},
"name": "kb_upsert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _id | No | Omit to create a new entry. | |
| url | No | Required when type is URL. | |
| type | Yes | Filter by type. | |
| title | No | Short label. | |
| content | No | Required when type is TEXT. |