formwire

v0.1.0
io.github.CloudCorpRecords/formwire Checked 3 days ago Published 1 month ago

Create and wire up contact forms from your agent: snippets, forms, and submissions.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_form

Create a Formpaste form and return its access key + a wired snippet. Triggers destination verification for a new address (the owner completes it in the dashboard); an already-verified destination delivers immediately. Errors with: unauthorized, upgrade_required.

ParameterTypeDescription
destinationEmail *stringWhere submissions are emailed. Must be verified before delivery starts.
name *stringA human-readable name for the form, e.g. "Contact form".
frameworkstringTarget framework for the returned snippet. Defaults to html.

get_snippet

Return a copy-paste form snippet for a framework (html, react, nextjs, astro, vue, svelte). Pass formId to fill in a real access key; otherwise a placeholder is used. Errors with: unauthorized, invalid_framework.

ParameterTypeDescription
framework *stringTarget framework for the snippet.
formIdstringAn owned form id to fill in the real access key; omit for a placeholder.

list_submissions

List submissions for one of your forms. Returns counts + per-submission metadata by default; set includeContent to include message bodies (third-party PII). Errors with: unauthorized, not_found, forbidden. Requires a full-access token.

ParameterTypeDescription
formId *stringA form id from create_form or list_forms, e.g. frm_...
folderstringWhich folder to list. Defaults to inbox.
includeContentbooleanInclude full submission message bodies (third-party PII). Defaults to false.
limitnumberMaximum number of submissions to return.

list_forms

List all forms on your account, each with its id, name, access_key, and inbox/spam counts. Use this to discover form ids or confirm a form you just created exists. Errors with: unauthorized.

get_form

Read one of your forms to verify it is wired correctly: returns its access_key, destination_email, destination_verified (whether submissions will be emailed yet), allowed_domains, and notification/autoresponder/webhook config. Never returns the webhook signing secret. Errors with: unauthorized, not_found.

ParameterTypeDescription
formId *stringA form id from create_form or list_forms, e.g. frm_...

send_test_submission

Store a TEST submission so you can prove a form is live and receiving. Stored only: it appears in the owner's Inbox with a Test badge but sends NO email, runs NO spam scoring, and never counts toward quota. Optionally pass sample fields; omit to use a default payload. Capped at the 5 newest test rows per form. Errors with: unauthorized, not_found, invalid_input, too_many_fields, field_too_large.

ParameterTypeDescription
formId *stringA form id from create_form or list_forms, e.g. frm_...
fieldsobjectOptional sample form fields as a flat string map, e.g. { name, email, message }. Omit to use a default test payload.