add_function
Add one low-risk function page to an editor app: radio (radio), YouTube (youtube), content page (content-page), contact form (forms), photo gallery (gallery), framed website (frame-website), RSS/podcast feed (rss-feed) or document library (pdf-library). For every other Add Page feature (Contact Us, Messages, Events, FAQs, Coupons and so on) use add_feature. Use forms only for structured requests; for "message us" use add_feature messages. Reads the app back and returns the page exactly as saved.
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": {
"appId": "<appId>",
"functionType": "<functionType>"
},
"name": "add_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | The editor app id (UUID). | |
| title | No | Page title shown in the app. Defaults to the function name. | |
| config | No | Settings for the function. Required keys: radio needs streamUrl; youtube needs channelId (or playlistId with sourceType "playlist"); rss-feed needs feedUrl; frame-website needs websiteUrl; content-page accepts html; forms accepts recipientEmail; gallery and pdf-library need nothing. | |
| allowWebsite | No | Only when the person explicitly asked for this page as a website link instead of the native feature (menus, bookings, events, FAQs, etc.). | |
| functionType | Yes | One of: radio, youtube, content-page, forms, gallery, frame-website, rss-feed, pdf-library. For every other Add Page feature use add_feature. | |
| allowWebsiteMenu | No | Legacy alias of allowWebsite. |