Open History to see the last commit
1---
2id: isProviderExecutedToolCall
3title: isProviderExecutedToolCall
4---
5
6# Function: isProviderExecutedToolCall()
7
8```ts
9function isProviderExecutedToolCall(toolCall): boolean;
10```
11
12Defined in: [packages/ai/src/utilities/provider-executed.ts:28](https://github.com/TanStack/ai/blob/main/packages/ai/src/utilities/provider-executed.ts#L28)
13
14True when a tool call was executed by the provider (e.g. Anthropic
15`web_search` / `web_fetch` server tools) rather than the agent loop. Such
16calls must not be routed to client-side execution and are already "complete".
17
18## Parameters
19
20### toolCall
21
22\{
23`metadata?`: `unknown`;
24\} | `null` | `undefined`
25
26## Returns
27
28`boolean`