Generate a document from a form
submit_formSubmit a filled Xenition form (from find_forms) to generate its document. Saves the result to the user's workspace and returns it. Usually called by the form widget when the user clicks submit.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"formId": "<formId>",
"values": "<values>"
},
"name": "submit_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | optional title for the produced document | |
| formId | Yes | the form id from find_forms (e.g. 'invoice', 'resume') | |
| values | Yes | the filled field values, keyed by field name; a list field is an array of objects keyed by its sub-field names |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| artifact | Yes |