browser_show_grid_overlay
Display an XY coordinate grid overlay on the page with position labels at intersections. Essential for finding exact pixel coordinates when using browser_click with coordinates or browser_drag_drop. The grid helps identify precise positions for mouse operations.
Usage Example
Parameters
Required
context_idstringrequiredThe unique identifier of the browser context (e.g., 'ctx_000001')
Optional
horizontal_linesnumberNumber of horizontal lines to display from top to bottom. Default: 25. More lines = more precise coordinate reading but more visual clutter
vertical_linesnumberNumber of vertical lines to display from left to right. Default: 25
line_colorstringCSS color for grid lines (use low alpha for visibility). Default: 'rgba(255, 0, 0, 0.15)'
text_colorstringCSS color for coordinate labels at intersections. Default: 'rgba(255, 0, 0, 0.4)'
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}