Upload file
artifact_uploadUpload a strictly encoded base64 file. 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. Every version is stored in full and counts toward the owner's storage; data that grows by adding records belongs in a table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | No | Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; 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. | |
| audience | No | Workspace audience: internal (the default for internal members) or shared (external members see it too; the only choice for external editors). | |
| filename | Yes | ||
| mimeType | Yes | ||
| workspaceId | No | The workspace to create it in (a workspace folder named in folder implies it). A workspace item needs why and takes no visibility, teams or publicAsset. | |
| base64Content | Yes | ||
| creatorContext | No | How it was made: the prompt, tool or run. | |
| 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 |