Add knowledge to an agent
add_agent_knowledgeAdd a new text knowledge source (for example an FAQ answer, policy, or product detail) that a private agent can search when answering visitors. Adds a source without editing or removing existing ones. Only agents that aren't live on the web can be changed here; for a live agent this changes nothing and returns its publishUrl, where the owner can take it offline first. Each call adds a separate source.
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>",
"title": "<title>",
"content": "<content>"
},
"name": "add_agent_knowledge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Short name for the source, such as 'Refund policy'. | |
| agentId | Yes | Agent ID from list_agents. | |
| content | Yes | The knowledge text in plain text or Markdown. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | ||
| agentName | Yes | ||
| characters | Yes | ||
| sourceName | Yes |