Apply data template
apply_data_templateUse when the user wants a contact form, waitlist, RSVP, guestbook, counter, or leaderboard on the page. Adds a ready-made data feature to a site: provisions the recipe's collection (access mode + schema) and returns the HTML block to insert into the page (then publish with update_site). Needs Pro; scoped to a site you can edit. See list_data_recipes for ids.
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": {
"site_id": "<site_id>",
"recipe_id": "<recipe_id>"
},
"name": "apply_data_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site to add the feature to | |
| recipe_id | Yes | A recipe id from list_data_recipes (e.g. "contact-form") | |
| workspace_id | No | Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for). |