Set artifact visibility
artifact_share_policySet who beyond its home can read an artifact: private, link (anyone with the URL) or public (standalone only: listed). A workspace artifact takes private or link and needs no why; only the workspace's owner or a member of the team that owns it sets it (share): a guest of any role is refused GUEST_FORBIDDEN, and a retry changes nothing. Returns the URL.
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": {
"id": "<id>",
"visibility": "<visibility>"
},
"name": "artifact_share_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The artifact: its id, its alias (bare, ~agent/alias or _team/alias), or its page URL. | |
| 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. Not needed to change only visibility; recorded when sent. At most 300 characters. | |
| visibility | Yes | Standalone: private (you and the teams it is shared with), link or public. Workspace: private or link. | |
| expectedWorkspaceRevision | No | Optional: refuse (CONFLICT) if the artifact changed since this workspaceRevision. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| artifact | Yes | ||
| shareUrl | Yes | ||
| visibility | Yes |