get-form
Retrieve the structure of an existing web form using its UUID for integration or customization via the Dynamic Form MCP server.
Instructions
Obtiene la estructura de un formulario existente mediante su UUID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | UUID del formulario |
Implementation Reference
- src/index.ts:66-73 (handler)Handler function for the 'get-form' tool that retrieves and returns the structure of a form by UUID using DynamicForm.getFormulary()async ({ uuid }) => { const form = new DynamicForm(uuid); const { formulary, error } = await form.getFormulary(); if (error) { return { content: [{ type: "text", text: `Error al obtener el formulario: ${error}` }] }; } return { content: [{ type: "text", text: JSON.stringify(formulary, null, 2) }] }; }
- src/index.ts:65-65 (schema)Input schema for the 'get-form' tool requiring a valid UUID string{ uuid: z.string().uuid().describe("UUID del formulario") },
- src/index.ts:62-74 (registration)Registration of the 'get-form' MCP tool with name, description, input schema, and handler functionserver.tool( "get-form", "Obtiene la estructura de un formulario existente mediante su UUID", { uuid: z.string().uuid().describe("UUID del formulario") }, async ({ uuid }) => { const form = new DynamicForm(uuid); const { formulary, error } = await form.getFormulary(); if (error) { return { content: [{ type: "text", text: `Error al obtener el formulario: ${error}` }] }; } return { content: [{ type: "text", text: JSON.stringify(formulary, null, 2) }] }; } );