---
title: "CSS query in DOM"
method: POST
path: "/api/v1/webview/dom/query"
tags: ["webview"]
---

# CSS query in DOM

`POST /api/v1/webview/dom/query`

Executes a CSS selector query against the WebView DOM and returns matching nodes.

## Request body

- DomQueryRequest — unresolved $ref

## Response `200`

Matching DOM nodes.

- object[]

## Other responses

- `400` — Invalid selector or locator.
- `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)
