Puppeteer 中文文档v25.8.0

WebMCP.tools() 方法

获取页面定义的所有 WebMCP 工具。

签名

class WebMCP {
  tools(): WebMCPTool[];
}

返回值:

WebMCPTool[]