跳转到内容

MCPToolMetaResolver

此内容尚不支持你的语言。

type MCPToolMetaResolver<TContext> = (context) =>
| Promise<Record<string, unknown> | null | undefined>
| Record<string, unknown>
| null
| undefined;

A function that produces MCP request metadata (_meta) for tool calls.

Type Parameter Default type

TContext

UnknownContext

Parameter Type

context

MCPToolMetaContext<TContext>

| Promise<Record<string, unknown> | null | undefined> | Record<string, unknown> | null | undefined