Share project
share_projectShare the project at its Morpheo link, the same as Share in the editor. Use only when the user asked in this conversation to share, publish or save it to their page, and pick visibility from their words: only_me (kept private: the link opens for them alone, after signing in), link (anyone with the link) or public (anyone, and on their Morpheo page). Sharing again moves the same link to the latest version and keeps its visibility unless you pass one. A public page needs a preview picture: pass preview_script (a try_app script that sets up the best moment and calls snap('preview')), else Morpheo keeps the current picture or photographs the app once it loads. Not for imported projects (their owner shares those from the editor).
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": {
"project_id": "<project_id>"
},
"name": "share_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Link preview title, up to 60 characters. | |
| project_id | Yes | The project's id, from list_projects or create_project. | |
| visibility | No | Who can open it: only_me (the user alone, after signing in), link (anyone with the link) or public (anyone, and on the user's Morpheo page). | |
| description | No | One or two plain sentences, 120-160 characters: what it does and for whom. | |
| preview_script | No | Optional try_app script for the preview photo; end with await snap('preview'). |