screenshot
Capture a screenshot of the current WeChat mini-program page. Provide a file path to save the image, or omit it to receive the image as a base64-encoded string.
Instructions
对小程序当前页面截图(传 path 保存到文件,否则返回图片 base64)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | 图片保存路径,不传则返回图片 base64 编码 |