Screenshot the mini program
mp_screenshotCapture the current WeChat Mini Program screen and return it inline for direct inspection, with an option to save a copy for diagnosing layout or state issues.
Instructions
Capture the current mini program screen and return it inline as an image, so it can be inspected directly. Optionally save a copy under the configured output directory. Screenshots are the fastest way to diagnose a layout or state problem that DOM reads do not explain.
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": "mp_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_to | No | File name to save the screenshot under output_dir, e.g. "detail-page.png". Relative paths only; the image is returned inline either way. |