Create upload
create_uploadStep 1 of putting a binary or data file into the knowledge base: pdf / doc / ppt, images, .csv, .xls / .xlsx, or a large file of any kind (including a large .md/.txt/.html/.json). Returns a short-lived, single-use URL to PUT the file's raw bytes at, together with the method and headers to use. Send the bytes as the request body - not base64, not multipart, not JSON - one file per ticket. Use this rather than create_file / update_file for anything that isn't small plain text: those reject content they can't store inline rather than silently corrupting it. Also use this to overwrite an existing file's bytes - uploading to an existing path overwrites it. After the PUT returns, poll upload_status with the same path until it reports complete. Only usable if you can make an outbound HTTP request yourself - the bytes travel over that PUT, never through this tool.
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": {
"path": "<path>",
"context": "<context>"
},
"name": "create_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full destination path in the knowledge base including the filename, e.g. '/reports/q3.pdf'. Must start with '/'. Uploading to an existing path overwrites it. | |
| context | Yes | Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization." | |
| workspace_id | No | Which workspace to act in - a workspace id (whoami returns the id of your default workspace). Omit to use your default workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| path | Yes | ||
| method | Yes | ||
| headers | Yes | ||
| maxSize | Yes | ||
| expiresAt | Yes | ||
| uploadUrl | Yes |