Skip to main content
Free - like the rest of the MCP server, get_snippet is not plan-gated.
Returns the same bare, wired snippet shown on a form’s Setup tab in the dashboard, for any of the six supported frameworks. Useful on its own when an agent already has a form (and its formId) and just needs the code again - e.g. to wire a second page, or after create_form’s snippet was discarded.

Input schema

Example call

Returned shape

With vs. without formId

  • With formId, and the form belongs to your account - the snippet’s access_key is the form’s real key, ready to paste and use immediately.
  • Without formId, or with an id that isn’t yours - the snippet uses YOUR_ACCESS_KEY as a placeholder. Owner-scoping means you can’t fetch another account’s key this way; a non-owned formId behaves exactly like omitting it.
Every snippet posts to https://api.formpaste.com/submit (the real, single submit endpoint - never a per-form URL like /f/{form_id}).

Errors

An unsupported framework value returns:
An invalid or revoked token returns the same auth error as every MCP tool - see MCP server.

create_form

Create a form and get its first snippet in one call.

Framework snippets

The same six snippets, browsable outside of MCP.