Set share link
share_linkTurn the share link of an artifact you own on or off (owner only). New artifacts are private: only the owner and invited people can open them. Call this only when the user asks to share the artifact by link; never turn a link on without the owner's consent. role is view, comment or edit (anyone with the link gets that role), or null to turn the link off. Password and expiry are kept. Returns { id, url, linkRole }.
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>",
"role": "<role>"
},
"name": "share_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| role | Yes |