# llmToolCallResponse

`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

* `toolCallId` is 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`.

## Related Pages

* [llmToolCall](/reference/actions-processor/actions_overview/llmtoolcall.md)
* [Klai Streaming API (LLM Query)](/reference/apis-and-services/streaming-proxy/bf-streaming-api-llm-query.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.klai.studio/reference/actions-processor/actions_overview/llmtoolcallresponse.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
