Publish artifact
artifact_publishPublish text as a versioned artifact. 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 visibility, teams or publicAsset (make it readable by anyone afterwards with artifact_share_policy); no expected revision is needed. folder files it: a folder id, or a slug (in workspaceId, else in team, else your personal folders). Typed teams lists are authorized before standalone creation. The bounded receipt includes complete immutable 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": {
"content": "<content>",
"type": "<type>"
},
"name": "artifact_publish"
}
}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. | |
| type | Yes | ||
| alias | No | ||
| 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. | |
| content | Yes | ||
| visibility | No | Standalone sharing only; omit with a workspace, including private. | |
| description | No | One line saying what this file is (lists show the first line), at most 64000 characters. | |
| publicAsset | No | Store it in public storage with a direct URL (publicUrl). Not private, not in a workspace, not a table. | |
| 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. | |
| 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 |