Puppeteer 中文文档v25.8.0

WebMCPTool.execute() 方法

使用输入参数执行工具,并与工具的 inputSchema 匹配。

签名

class WebMCPTool {
  execute(input?: object): Promise<WebMCPToolCallResult>;
}

参数

参数

类型

说明

input

object

(可选)

返回值:

Promise<WebMCPToolCallResult>