Add, remove or refresh what the chat knows from
manage_knowledge_sourceChange the chat's knowledge sources. add_note writes a note of business facts the chat answers from (title, content); edit_note changes one (source_id, and the new title and/or content). import_page reads the text of a public web page (url, optional title) into what the chat knows; importing the same address again replaces it. remove deletes one source the owner added (a note, an imported page or an uploaded file; source_id from list_knowledge_sources or list_widget_knowledge); the site's own pages cannot be removed this way, they follow the site. refresh reads one source again. sync_all reads every waiting source now, which can take a minute. Show the owner what a note will say before saving it. Files (PDFs, images) are uploaded in the Knowledge settings.
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": {
"site_id": "<site_id>",
"action": "<action>"
},
"name": "manage_knowledge_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | import_page: the public page address | |
| title | No | add_note / edit_note: the note title; import_page: a name for the page (default: its own title) | |
| action | Yes | ||
| content | No | add_note / edit_note: the facts, in plain sentences | |
| site_id | Yes | The site, from list_sites | |
| source_id | No | edit_note / remove / refresh: the source id | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. |