mp_screenshot
Capture the current viewport screenshot of a WeChat mini program. Requires an active session; returns inline image or saves to file path.
Instructions
截取当前小程序视口的截图。需要已有活动会话;若提示没有活动会话,请先调用 mp_ensureConnection。默认返回内联图片,或保存到文件路径。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | No | ||
| path | No |