# get_element_bounding_box

A read tool on the Playwright MCP Server MCP server.

Agent View of the PolicyLayer registry record for `get_element_bounding_box`. HTML page: https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/get-element-bounding-box

## Facts

- Tool: `get_element_bounding_box`
- Server: Playwright MCP Server (`alexrwilliam/playwright-mcp-server`) — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server.md
- Homepage: https://github.com/alexrwilliam/playwright-mcp-server
- Risk category: Read (Low risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Allowed

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_element_bounding_box",
    "arguments": {}
  }
}
```

## Why get_element_bounding_box is rated Low

This tool retrieves element bounding box coordinates—a read-only query with no side effects on the page or data. It extracts information rather than modifying, executing, or deleting anything. Severity is low because the blast radius of misuse is minimal; returning element positions poses no security or operational risk.

From the tool's own definition: "Tool name 'get_element_bounding_box' combined with server context of browser automation and DOM manipulation indicates retrieval of element positioning data."

## Use case

AI agents call get_element_bounding_box to retrieve information from Playwright MCP Server without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Playwright MCP Server:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "get_element_bounding_box": {}
  }
}
```

## Other tools on Playwright MCP Server (66)

- `clear_cookies` — Destructive — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/clear-cookies.md
- `clear_network_logs` — Destructive — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/clear-network-logs.md
- `clear_storage` — Destructive — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/clear-storage.md
- `apply_antidetect_preset` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/apply-antidetect-preset.md
- `check_checkbox` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/check-checkbox.md
- `clear_text` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/clear-text.md
- `click` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/click.md
- `evaluate` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/evaluate.md
- `fill` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/fill.md
- `go_back` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/go-back.md
- `go_forward` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/go-forward.md
- `hover` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/hover.md
- `intercept_route` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/intercept-route.md
- `navigate` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/navigate.md
- `press_key` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/press-key.md
- `recreate_context` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/recreate-context.md
- `reload` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/reload.md
- `restart_browser` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/restart-browser.md
- `scroll` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/scroll.md
- `select_option` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/select-option.md
- `set_extra_headers` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/set-extra-headers.md
- `set_user_agent` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/set-user-agent.md
- `set_viewport_size` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/set-viewport-size.md
- `switch_page` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/switch-page.md
- `switch_to_latest_page` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/switch-to-latest-page.md
- `type_text` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/type-text.md
- `uncheck_checkbox` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/uncheck-checkbox.md
- `unroute_all` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/unroute-all.md
- `upload_file` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/upload-file.md
- `wait_for_element` — Execute — https://policylayer.com/tools/alexrwilliam-playwright-mcp-server/wait-for-element.md
- …and 36 more: https://policylayer.com/tools/alexrwilliam-playwright-mcp-server.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=alexrwilliam-playwright-mcp-server · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/alexrwilliam-playwright-mcp-server
