WebMCPToolCallResult 接口
🌐 WebMCPToolCallResult interface
语法
🌐 Signature
export interface WebMCPToolCallResult
属性
🌐 Properties
|
属性 🌐 Property |
修饰符 🌐 Modifiers |
类型 🌐 Type |
描述 🌐 Description |
默认 🌐 Default |
|---|---|---|---|---|
|
call |
|
如果可用,相应的工具调用。 🌐 The corresponding tool call if available. | ||
|
errorText |
|
string |
错误文本。 🌐 Error text. | |
|
exception |
|
Protocol.Runtime.RemoteObject |
异常对象,如果 JavaScript 工具抛出错误的话。 🌐 The exception object, if the javascript tool threw an error. | |
|
id |
string |
工具调用标识符。 🌐 Tool invocation identifier. | ||
|
output |
|
any |
输出或错误以传递给代理的形式交付。如果 🌐 Output or error delivered as delivered to the agent. Missing if | |
|
status |
Protocol.WebMCP.InvocationStatus |
调用的状态。 🌐 Status of the invocation. |