Add Form
vibesites_add_formGenerate a working HTML form for a site. Returns an HTML snippet with the correct action URL. Forms POST to the Vibesites API — submissions are stored and viewable via get_submissions. Insert the returned HTML into your page with write_file.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
site_id | string | Required | Site ID |
form_name | string | Required | Form identifier: "contact", "newsletter", or "waitlist" |
fields | array | Optional | Custom fields array of { name, type, required, placeholder } |
Example
Ask Claude something like:
Prompt example
"Add a contact form with name, email, and message fields"