Create form card
create_form_cardCollect user input in a chat by rendering a form card. On submit, the values become the next prompt, optionally formatted via a template.
Instructions
Render a form card the user fills in to give the conversation context and direction. Submitting sends the values back to the chat as the next prompt (optionally shaped by promptTemplate with {{fieldName}} tokens).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| fields | Yes | ||
| subtitle | No | ||
| description | No | ||
| submitLabel | No | ||
| contextActions | No | Right-click menu actions the model anticipates being useful. Choosing one sends its prompt to the conversation; use {{selection}} to include the user's selected text. | |
| promptTemplate | No | Prompt sent on submit; {{fieldName}} tokens are replaced with values |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | Yes |