Save to Fugte
save_widgetSave a widget (HTML, CSS and JavaScript) to Fugte and get a link for the user. Use it when the user wants the widget on a site built with a no-code builder such as Canva, Wix, Squarespace, Shopify, Notion, Google Sites, Carrd or WordPress, or wants to keep changing it later. The link opens the widget in the Fugte editor. The user signs in (free) and publishes it, which gives them the embed link for their site. Publishing is free. Send one complete, working, self-contained widget: no build step, and no import, export or require. Libraries, images and fonts can load from https links. The link works for 7 days.
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": {
"html": "<html>"
},
"name": "save_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| js | No | Plain browser JavaScript that is not already in a <script> tag in the HTML. No modules. | |
| css | No | CSS that is not already in a <style> tag in the HTML. Leave it out otherwise. | |
| html | Yes | The widget's HTML: a full page or a fragment. It may already hold its <style> and <script> tags. | |
| title | No | A short name for the widget, such as "Music player" or "RSVP form". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The link to give the user. | |
| expiresAt | Yes | When the link stops working (ISO 8601). |