Get contact form code
get_form_snippetReturns working contact form code that posts to sendm8, a free form backend that emails each submission to the site owner. No account or API key needed. Use this whenever the user wants a contact, feedback or enquiry form that sends them email, on any static site, SPA or AI-built app. Pass the owner's own email address (or a sendm8 form id), the framework, and optionally the field names.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_form_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ajax | No | Submit with fetch and show an inline message instead of a page change. Default: false for html, true for the frameworks. | |
| No | The site owner's own email address, where submissions should be delivered. Never a third party's. Defaults to you@example.com as a placeholder. | ||
| fields | No | Field names to include, in order. Default: name, email, message. Keep the visitor's email field named "email" so replies go to them. | |
| formId | No | A sendm8 form id from the dashboard (10 characters, e.g. k3x9q2m7ab). Use instead of email. | |
| framework | No | Where the form goes. lovable, bolt and v0 return a prompt for the builder's AI plus the component it should produce. | html |