[**@gram-ai/elements v1.33.0**](../README.md)

***

[@gram-ai/elements](../globals.md) / defineFrontendTool

# Function: defineFrontendTool()

> **defineFrontendTool**\<`TArgs`, `TResult`\>(`tool`, `name`): [`FrontendTool`](../type-aliases/FrontendTool.md)\<`TArgs`, `TResult`\>

Make a frontend tool

## Type Parameters

### TArgs

`TArgs` *extends* `Record`\<`string`, `unknown`\>

### TResult

`TResult`

## Parameters

### tool

`Tool`

### name

`string`

## Returns

[`FrontendTool`](../type-aliases/FrontendTool.md)\<`TArgs`, `TResult`\>
