Upload file
artifact_uploadUpload a strictly encoded base64 file. description (optional) says what it is, one line first: lists show the first line. A workspace item needs why (workspaceId, or a workspace folder named in folder, homes it there) and takes no teams; no expected revision is needed. folder files it: a folder id, or a slug (in workspaceId, else in team, else your personal folders). Authorize typed team selection before standalone file creation; returns bounded content access. rawUrl is the link to the file itself; url is its page. Stored content and its description count toward the owner's storage; a table takes added records as rows (table_append_rows) without resending the rest. A workspace item created with no description returns a hint saying so.
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": {
"base64Content": "<base64Content>",
"filename": "<filename>",
"mimeType": "<mimeType>"
},
"name": "artifact_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | No | Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters. | |
| team | No | With a folder slug: the team (slug or id) the folder belongs to. | |
| teams | No | Teams (slug or id) to share it with once it exists. Standalone only. | |
| title | No | ||
| folder | No | The folder to file it in: a folder id (a workspace folder puts it in that workspace), or a slug: in workspaceId when given, else in team, else one of your personal folders. | |
| filename | Yes | ||
| mimeType | Yes | ||
| description | No | One line saying what this file is (lists show the first line), at most 64000 characters. | |
| workspaceId | No | The workspace to create it in, by its id or its slug (a workspace folder named in folder implies it). A workspace item needs why and takes no visibility, teams or publicAsset. | |
| base64Content | Yes | ||
| inputReferences | No | What it was made from: ids or URLs. | |
| parentArtifactId | No | The artifact this one was derived from. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| artifact | Yes |