Wait for Map Viewer
ensure_map_viewerReports whether the person has the map open (viewer_status.connected) for a map_session_id from get_map_visualization, waiting up to wait_seconds (max 30 s per call; the result reports requested_wait_seconds and max_wait_seconds). Works the same for the in-chat map and the map_url tab. Returns VIEWER_NOT_CONNECTED while the map is still closed; the same call can be repeated while the person opens it. Build, analyze, and selection results paint live once the viewer is connected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_seconds | No | ||
| map_session_id | Yes | ||
| poll_interval_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||