# WebAppElementContextInput

Fields, types, and constraints for WebAppElementContextInput.

Canonical: https://commentary.dev/docs/reference/schemas/web-app-element-context-input

Released API schema for `WebAppElementContextInput`.

## Fields and constraints

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `route` | string | Yes |  |
| `url` | string | Yes | Format: uri. |
| `origin` | string | Yes |  |
| `selector` | string | Yes |  |
| `fallbackSelector` | string | Yes |  |
| `tagName` | string | Yes |  |
| `role` | string or null | No |  |
| `accessibleName` | string or null | No |  |
| `textSnippet` | string or null | No |  |
| `boundingRect` | object | Yes |  |
| `viewport` | object | Yes |  |
| `component` | object or null | No |  |
| `commitSha` | string or null | No |  |

## Full schema

[Download this schema](/docs/reference/schemas/web-app-element-context-input.json) or use the [complete OpenAPI document](/docs/reference/openapi.json) to resolve all references.

## Related reference

[Browse API endpoints](/docs/reference/api-operations).
