Skip to main content
Version: 25.3.0

WebMCPToolCallResult 接口

🌐 WebMCPToolCallResult interface

语法

🌐 Signature

export interface WebMCPToolCallResult

属性

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

默认

🌐 Default

call

optional

WebMCPToolCall

如果可用,相应的工具调用。

🌐 The corresponding tool call if available.

errorText

optional

string

错误文本。

🌐 Error text.

exception

optional

Protocol.Runtime.RemoteObject

异常对象,如果 JavaScript 工具抛出错误的话。

🌐 The exception object, if the javascript tool threw an error.

id

string

工具调用标识符。

🌐 Tool invocation identifier.

output

optional

any

输出或错误以传递给代理的形式交付。如果 status 不是 Completed,则缺失。

🌐 Output or error delivered as delivered to the agent. Missing if status is anything other than Completed.

status

Protocol.WebMCP.InvocationStatus

调用的状态。

🌐 Status of the invocation.