Open History to see the last commit
1---
2id: ProviderExecutedToolMetadata
3title: ProviderExecutedToolMetadata
4---
5
6Defined in: [packages/ai/src/types.ts:214](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L214)
7
8Convention for tool-call `metadata` that marks a call as **provider-executed**
9— run by the provider's own infrastructure (e.g. Anthropic `web_search` /
10`web_fetch` server tools) rather than by the agent loop. Adapters set
11`providerExecuted: true` so that:
12
131. The agent loop never tries to execute the call client-side (see
14 [isProviderExecutedToolCall](../functions/isProviderExecutedToolCall.md) usage in the chat engine), and
152. The adapter can stash the raw provider result alongside it so the call —
16 and its evidence — round-trips into the next turn's request.
17
18Provider-specific payloads live under a namespaced key (e.g. `anthropic`),
19keeping this convention opaque to the framework core. The index signature
20preserves those per-adapter fields.
21
22## Indexable
23
24```ts
25[key: string]: unknown
26```
27
28## Properties
29
30### providerExecuted?
31
32```ts
33optional providerExecuted?: boolean;
34```
35
36Defined in: [packages/ai/src/types.ts:215](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L215)