Appearance
llmToolCallResponse
Sends the result of a frontend tool workflow back to the BetterForms LLM tool-response service.
llmToolCallResponse sends the result of a frontend tool workflow back to BetterForms so the LLM flow can continue.
Expected Options
| Key | Type | Description |
|---|---|---|
options.toolCallId | string | Required correlation ID for the tool call being completed |
options.* | any | Any additional response data you want returned to the tool-response service |
Example
json
{
"action": "llmToolCallResponse",
"options": {
"toolCallId": "tool_123",
"success": true,
"message": "UI action completed"
}
}Behavior Notes
toolCallIdis required.- BetterForms sends the response to
llm/tool-response. - Additional option keys are included in the returned result object.
- If the response action itself fails, BetterForms attempts to send a failure payload for the same
toolCallId.