跳转到内容

MCPToolCustomDataContext

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

Context information available to MCP tool custom data extractors.

Type Parameter Default type

TContext

UnknownContext

arguments: Record<string, unknown> | null;

Parsed tool arguments.


optional isError?: boolean;

MCP tool result isError, if present.


optional resultMeta?: Record<string, unknown>;

MCP tool result _meta, if present.


runContext: RunContext<TContext>;

The current run context.


serverName: string;

Name of the MCP server.


optional structuredContent?: Record<string, unknown>;

MCP tool result structuredContent, if present.


toolDisplayName: string;

Public function-tool name exposed through the Agents SDK.


toolName: string;

Original name of the tool on the MCP server.


toolOutput: unknown;

The model-visible output produced from the MCP tool result.