Manage the knowledge base
tuqui_kbRead and manage the knowledge base — the files and cloud folders the chat reads from: the user's own workspace knowledge. Questions about the product Tuqui itself (how to use it, prices, plans, permissions) go to tuqui_docs. scope='workspace' is the whole workspace (any member can read; only an admin or owner can change it); scope='project' is one project's own, and takes 'project_id' (any member of it can read; 'editor' or above IN THAT PROJECT can change it); scope='agent' is one agent's own files, and takes 'agent_id' (only who may edit that agent can read or change them). action='list' returns its files and folders; 'add' takes files the person attached to THIS conversation (by filename), a file from a cloud drive (Drive, OneDrive...), or a folder that keeps re-syncing; 'remove' takes 'resource_id' for a file or 'folder_id' for a folder. A folder's imported files come and go with it — remove the folder, not its files one by one. 'sync' re-reads the linked folders now; they already re-sync on their own whenever the base is listed, so only ask for it when something was JUST added to the folder and has to be there this minute.
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": {
"action": "<action>",
"scope": "<scope>"
},
"name": "tuqui_kb"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Link to the file or folder, if known. | |
| name | No | Name of the cloud file or folder. | |
| cloud | No | Which cloud the file or folder id comes from: the one whose tools gave it. Only needed when more than one is connected. | |
| scope | Yes | REQUIRED. 'workspace' applies to every chat in the workspace; 'project' only to that project's chats; 'agent' only to what that agent reads. | |
| action | Yes | REQUIRED. 'save' adds a source, 'delete' takes one out, 'sync' re-reads a linked folder. ('add' and 'remove' were the old names for the first two.) | |
| agent_id | No | REQUIRED when scope='agent'. The agent's UUID, from tuqui_agent. | |
| folder_id | No | For 'remove': the folder's UUID. For 'sync': the one folder to re-read — omit it to re-read every folder of the scope. | |
| mime_type | No | MIME type of the cloud file. | |
| project_id | No | REQUIRED when scope='project'. The project's UUID. | |
| resource_id | No | For 'remove': the file's UUID. | |
| connector_id | No | The connector to read it through. Only needed when the workspace has more than one of the same cloud. | |
| consent_token | No | The approval a person gave for THIS call in Tuqui. Bound to these arguments and valid once. | |
| drive_file_id | No | A file id from a connected cloud drive's tools to reference (not copied — read on demand); pass 'name' and 'mime_type' with it, and 'cloud'. | |
| drive_folder_id | No | A folder id from a connected cloud drive's tools. The folder stays LIVE: its documents import as individual files and re-sync, so adding a folder can add many files. |