Import a file into your workspace
import_fileUse this when the user wants to bring a file's content into their Xenition workspace — e.g. they attached or pasted a document and want it saved. Pass UTF-8 text in textContent, or other content base64-encoded in base64Content, with contentMimeType. Saves it as an editable document that summarize_artifact, query_document, ask_workspace and edit_artifact can work on. Supports text, Markdown, CSV, JSON, HTML and PDF. To bring in a page from the web instead, use add_to_knowledge with its URL.
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": {
"title": "<title>"
},
"name": "import_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | a title for the saved file, e.g. 'Q3 Board Notes' | |
| textContent | No | the file's UTF-8 text content. Use this for text, Markdown, CSV, JSON or HTML. Set either this or base64Content, not both. | |
| base64Content | No | the file's content, base64-encoded. Use this for non-UTF-8 files such as a PDF. Set either this or textContent, not both. | |
| contentMimeType | No | the MIME type of the content, e.g. 'text/markdown', 'text/csv', 'text/html', 'application/pdf'. Recommended so the content is handled correctly. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| chars | Yes | ||
| title | Yes | ||
| openUrl | No | ||
| artifactId | No |