Create a form endpoint
create_formCreates a form endpoint for an existing site (siteId) and returns ready-to-use HTML: the action URL, a honeypot field and the hidden spam-check inputs are already included. The form receives submissions once that HTML is live on the site.
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": {
"siteId": "<siteId>",
"name": "<name>",
"fields": "<fields>"
},
"name": "create_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | e.g. "Contact form" | |
| fields | Yes | ||
| siteId | Yes | ||
| successMessage | No | Text shown after a successful submission. |