Read a file into the knowledge base
add_knowledge_from_fileReads an already uploaded PDF, image or text file and stores what it says so it can be searched. Give it a media id from an upload.
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": {
"mediaId": "<mediaId>"
},
"name": "add_knowledge_from_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | A name for it. Defaults to the file name. | |
| mediaId | Yes | Media id from an upload tool. |