Skip to main content
Server path: /knowledge-base | Type: Embedded | PCID required: No Upload documents, ask questions with AI-generated answers, and run semantic searches across your knowledge base collections.

Tools

ToolDescription
knowledge-base_list_collectionsList all knowledge base collections
knowledge-base_create_collectionCreate a new knowledge base collection
knowledge-base_upload_fileUpload a file to a collection
knowledge-base_delete_itemDelete a file from a collection
knowledge-base_askAsk questions and get AI-generated answers
knowledge-base_searchSemantic search across documents
knowledge-base_create_sharelinkCreate a shareable URL for a file

knowledge-base_list_collections

List all knowledge base collections in the current workspace. Parameters: None Response fields:
FieldTypeDescription
collectionsobject[]Array of collection objects
collections[].idstringCollection ID
collections[].namestringCollection name
collections[].descriptionstringCollection description
collections[].typestringCollection type
collections[].maxItemsnumberMaximum number of items allowed
collections[].numItemsnumberCurrent number of items
collections[].isSharedbooleanWhether the collection is shared
collections[].statusstringCollection status
collections[].createdBystringUser ID of the creator
collections[].createdByNamestringDisplay name of the creator
collections[].permissionsobjectPermission settings
collections[].permissions.adminbooleanWhether the user has admin access
collections[].permissions.writebooleanWhether the user has write access
collections[].permissions.readbooleanWhether the user has read access
collections[].createdAtstringCreation timestamp
collections[].updatedAtstringLast updated timestamp

knowledge-base_create_collection

Create a new knowledge base collection. Parameters:
ParameterTypeRequiredDescription
namestringYesCollection name
descriptionstringNoCollection description
createdBystringYesUser ID of the creator
createdByNamestringYesDisplay name of the creator
Response fields:
FieldTypeDescription
messagestringSuccess message
idstringID of the newly created collection

knowledge-base_upload_file

Upload a file to a knowledge base collection. Provide either fileUrl or fileContent — not both. Parameters:
ParameterTypeRequiredDefaultDescription
collectionIdstringYesCollection ID
filenamestringYesName for the uploaded file
fileUrlstringNoURL of the file to upload (use either fileUrl or fileContent)
fileContentstringNoText content of the file (use either fileUrl or fileContent)
fileLinksExpireInDaysnumberNoNumber of days until file links expire (1–7)
fileLinksExpireInMinutesnumberNoNumber of minutes until file links expire (overrides days)
returnFileUrlbooleanNofalseWhether to return a signed file URL in the response
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
messagestringSuccess message
idstringFile ID
collectionIdstringParent collection ID
file_urlstringSigned file URL (when returnFileUrl is true)
file_sizenumberFile size in bytes
mime_typestringMIME type of the file
metadataobjectFile metadata
metadata.filenamestringOriginal filename
metadata.contentTypestringContent type of the file

knowledge-base_delete_item

Delete a file from a knowledge base collection. This action is irreversible. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
filenamestringYesName of the file to delete
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
messagestringConfirmation message

knowledge-base_ask

Ask questions about documents in a knowledge base collection and get AI-generated answers. Retrieves relevant document chunks and uses them as context for the response. Parameters:
ParameterTypeRequiredDefaultDescription
collectionIdstringYesCollection ID
userPromptsstring or string[]YesQuestion(s) to ask about the documents
proxyIdstringNoProxy ID for cross-workspace access
systemPromptsstring or string[]NoSystem prompt(s) to guide the AI response
filterTagsobjectNoFilter object to narrow document scope (supports eq, ne, gt, gte, lt, lte operators and compound and/or)
maxResultsnumberNo10Maximum number of document chunks to retrieve (1–100)
modelstringNo"gpt-4o-mini"AI model to use for generating the answer
streambooleanNoWhether to stream the response
Response fields:
FieldTypeDescription
vectorStoreIdstringVector store ID used for the search
responsestringAI-generated answer based on the retrieved documents
searchResultsobject[]Array of document chunks used as context
searchResults[].file_idstringFile ID of the source document
searchResults[].filenamestringFilename of the source document
searchResults[].scorenumberRelevance score of the chunk
searchResults[].attributesobjectDocument attributes and metadata
searchResults[].contentobject[]Array of content chunks from the document
modelstringAI model used for the answer
providerstringAI provider used

Run a semantic search across documents in a knowledge base collection. Returns matching document chunks ranked by relevance. Parameters:
ParameterTypeRequiredDefaultDescription
collectionIdstringYesCollection ID
querystringYesSearch query text
filterTagsobjectNoFilter object to narrow document scope (supports eq, ne, gt, gte, lt, lte operators and compound and/or)
proxyIdstringNoProxy ID for cross-workspace access
maxResultsnumberNo10Maximum number of results to return (1–50)
confidencenumberNo0.7Minimum confidence threshold for results (0–1)
rewriteQuerybooleanNoWhether to rewrite the query for better semantic matching
Response fields:
FieldTypeDescription
vectorStoreIdstringVector store ID used for the search
objectstringResponse object type
search_querystringThe query used for the search (may differ from input if rewriteQuery is true)
dataobject[]Array of matching document chunks
data[].file_idstringFile ID of the source document
data[].filenamestringFilename of the source document
data[].scorenumberRelevance score of the chunk
data[].attributesobjectDocument attributes and metadata
data[].contentobject[]Array of content chunks from the document
has_morebooleanWhether more results are available
next_pagestringPagination token for the next page of results

Create a shareable URL for a file in a knowledge base collection. The link can be configured to expire after a set number of days or minutes. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
filenamestringYesName of the file to share
fileLinksExpireInDaysnumberNoNumber of days until the link expires (1–7)
fileLinksExpireInMinutesnumberNoNumber of minutes until the link expires (overrides days)
queryParamsobjectNoAdditional query parameters to include in the link
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
messagestringSuccess message
short_urlstringShareable short URL
expiresAtstringExpiration timestamp of the link
queryParamsobjectQuery parameters included in the link