WebMCPTool.execute() 方法
🌐 WebMCPTool.execute() method
使用输入参数执行工具,与工具的 inputSchema 匹配。
🌐 Executes tool with input parameters, matching tool's inputSchema.
语法
🌐 Signature
class WebMCPTool {
execute(
input?: object,
options?: WebMCPToolExecuteOptions,
): Promise<WebMCPToolCallResult>;
}
参数
🌐 Parameters
|
范围 🌐 Parameter |
类型 🌐 Type |
描述 🌐 Description |
|---|---|---|
|
input |
object |
(可选) 🌐 (Optional) |
|
options |
(可选) 🌐 (Optional) |
返回:
Promise<WebMCPToolCallResult>