mp_ensureConnection
Verify the mini program automation session is ready. Use before screenshot, page, or element operations. On failure, retry with reconnect=true or pass projectSelection if prompted.
Instructions
检查小程序自动化会话是否就绪。先调用这个工具,再调用 mp_screenshot、page_* 或 element_* 工具。若失败,优先用 reconnect=true 重试一次;若返回项目选择提示,则传 projectSelection。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | No | ||
| reconnect | No | ||
| projectSelection | No |