---
url: >-
  https://adk.nht.io/api/@nhtio/adk/types/type-aliases/DispatchToolsRetrievalFn.md
description: Retrieves tools for an LLM execution context.
---

# Type Alias: DispatchToolsRetrievalFn

```ts
type DispatchToolsRetrievalFn = (
  ctx: DispatchContext,
) => Tool[] | Promise<Tool[]>;
```

Defined in: [lib/contracts/dispatch\_context.ts:53](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/contracts/dispatch_context.ts#L53)

Retrieves tools for an LLM execution context.

## Parameters

| Parameter | Type                                                  |
| --------- | ----------------------------------------------------- |
| `ctx`     | [`DispatchContext`](../interfaces/DispatchContext.md) |

## Returns

| [`Tool`](../../forge/classes/Tool.md)\[]
| `Promise`<[`Tool`](../../forge/classes/Tool.md)\[]>
