Publish artifact
artifact_publishPublish text as a versioned artifact. 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 hand a person for the file itself; url is its page. Stored content counts toward the owner's storage; data that grows by adding records belongs in a table.
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 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. | |
| 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. | |
| 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 |