---
title: "Get DOM snapshot"
method: GET
path: "/api/v1/webview/dom"
tags: ["webview"]
---

# Get DOM snapshot

`GET /api/v1/webview/dom`

Returns a simplified snapshot of the DOM tree in the WebView.

## Query parameters

- `contextId` string

## Response `200`

Simplified DOM tree.

- object — Simplified DOM tree representation.

## Other responses

- `404` — Element not found.
- `500` — Internal server error.

---

[API](https://skmtc.dev/dotnet/apis/devflow-agent-protocol.md) · [All operations](https://skmtc.dev/dotnet/apis/devflow-agent-protocol/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dotnet/devflow-agent-protocol/revisions/31dec8eed3de/schema)
