---
title: "Execute JavaScript in WebView"
method: POST
path: "/api/v1/webview/evaluate"
tags: ["webview"]
---

# Execute JavaScript in WebView

`POST /api/v1/webview/evaluate`

Evaluates a JavaScript expression inside a WebView context and returns the result. This low-level endpoint can read or change application data. Interactive Inspector hosts require explicit confirmation before calling it; direct API callers are responsible for equivalent authorization and user intent.

## Request body

- EvaluateRequest — unresolved $ref

## Response `200`

Evaluation result.

- EvaluateResponse — unresolved $ref

## 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)
