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