WarUI

Context Inspector: See Exactly What Is Shared

GRID-A27-F08P0beyond-baselinePlanned

Before any request leaves the grid, the user can open an inspector showing the exact payload: the prompt, schema, data sample and tool definitions. The developer can optionally require the user to approve the payload before every send. This makes data boundaries verifiable rather than assumed.

Planned. This page shows the specification from issue #207. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

AI enabled with a mock provider and a prompt box. The inspector panel is collapsed.

Expected behavior

Submitting a prompt opens the inspector showing the payload as a JSON tree with its byte size. With approval required, Send waits for the user to click Approve. Cancel aborts the request with no provider call.

Planned API surface

ai.requireContextApprovalgrid.ai.buildContext(prompt)onBeforeContextSendContextPayload

Acceptance criteria

  • The inspector payload is byte-identical to what the provider adapter receives (pending)
  • onBeforeContextSend can modify or cancel the payload (pending)
  • Cancel results in zero provider invocations (pending)
  • The byte size is shown (pending)