New to Telerik UI for Blazor? Start a free 30-day trial

Blazor LLM Kit ToolCall

Updated on Oct 1, 2026

The ToolCall component shows a tool invocation made by the agent, including the tool name, its input parameters, and the result. It also supports a human-in-the-loop approval flow where users can approve or reject the tool execution before it runs.

Use the component when an agent requests access to an external system such as a database, API, or file store, and you want to give users visibility and control over that action.

Creating Blazor ToolCall

To use the ToolCall component:

  1. Add the <TelerikToolCall> tag.
  2. Set the Label parameter to the tool name.
  3. Set the State parameter to a ToolCallState value that reflects the current execution state.
  4. Set the Parameters parameter to an object representing the tool inputs.
  5. (optional) Set ApprovalText to describe what the tool will do. This text appears when State is ToolCallState.AwaitingApproval.
  6. (optional) Subscribe to OnAction to handle approve and reject actions.
  7. (optional) Set Result to display the tool output after execution.
  8. (optional) Set ErrorText to display an error message when State is ToolCallState.Error.

Completed ToolCall showing tool name, parameters, and execution metadata

Example
View Source
Loading ...

ToolCall awaiting user approval before execution

Example
View Source
Loading ...

ToolCall API

Get familiar with all ToolCall parameters, states, and events in the ToolCall API Reference.

Next Steps

See Also