Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Class References
Function References
Interface References
Type Alias References
Variable References
Interface References

ToolCallPart

Interface: ToolCallPart

Defined in: packages/typescript/ai/src/types.ts:310

Properties

approval?

ts
optional approval: object;
optional approval: object;

Defined in: packages/typescript/ai/src/types.ts:317

Approval metadata if tool requires user approval

approved?

ts
optional approved: boolean;
optional approved: boolean;

id

ts
id: string;
id: string;

needsApproval

ts
needsApproval: boolean;
needsApproval: boolean;

arguments

ts
arguments: string;
arguments: string;

Defined in: packages/typescript/ai/src/types.ts:314


id

ts
id: string;
id: string;

Defined in: packages/typescript/ai/src/types.ts:312


name

ts
name: string;
name: string;

Defined in: packages/typescript/ai/src/types.ts:313


output?

ts
optional output: any;
optional output: any;

Defined in: packages/typescript/ai/src/types.ts:323

Tool execution output (for client tools or after approval)


state

ts
state: ToolCallState;
state: ToolCallState;

Defined in: packages/typescript/ai/src/types.ts:315


type

ts
type: "tool-call";
type: "tool-call";

Defined in: packages/typescript/ai/src/types.ts:311