Content tools
MCP.Scientio.Com documentation

Content

These tools manage the material held inside a knowledge base. Anything you add — plain text or a live web page — is chunked, embedded and indexed for retrieval, and the knowledge graph of the KBase is extended to describe it. All of these tools require you to own the knowledge base you name.

AddContent

Adds a piece of text content to a knowledge base and indexes it incrementally, so existing content stays searchable throughout.

Parameters

NameTypeDescription
indexIdstringThe Id of the KBase to add the content to.
contentNamestringA name for the content. Use it later to delete the item.
contentstringThe text to add.

Returns

The content Id of the added content.

AddWebsite

destructive

Fetches a web page and adds its text to a knowledge base, indexing it in the same way as AddContent.

Parameters

NameTypeDescription
indexIdstringThe Id of the KBase to add the page to.
urlstringThe address of the web page to read.

Returns

The content Id of the added website.

ListContent

Lists everything currently held in a knowledge base.

Parameters

NameTypeDescription
indexIdstringThe Id of the KBase.

Returns

A list of records, each containing:

FieldTypeDescription
ContentIdstringThe Id of the content item.
ContentNamestringThe name of the content item.
ContentTypestringThe kind of item, expressed as a word from the shared lineage taxonomy.

GetContent

Retrieves a single stored content item from a knowledge base.

Parameters

NameTypeDescription
contentIdstringThe Id of the content item, as reported by ListContent.
indexIdstringThe Id of the KBase holding the item.

Returns

The content itself together with its content type. If the knowledge base cannot be found for the calling account, an empty result is returned.

DeleteContent

destructive

Removes a content item from a knowledge base and de-indexes it, so it no longer appears in search or chat answers.

Parameters

NameTypeDescription
indexIdstringThe Id of the KBase holding the item.
contentNamestringThe name given to the content when it was added.

Returns

true when the content was deleted.