Capabilities

Viewer Context & Agent Vision

The frontend viewer isn't just a static display; it interacts directly with the AI, giving it structural awareness of the rendered document.

Element Selection

Click any block in the live preview. Pneuma wraps it in an outline and automatically injects a <viewer-context> block into your next chat message.

Selected: <h1>
"Make this title larger and blue"

The AI knows exactly which <h1> you clicked on without you needing to explain where it is.

Agent-Callable Actions

The ViewerContract exposes specific actions the agent can trigger in the UI, enabling seamless multi-step workflows.

Navigation
Agent jumps your view to Slide 10 after editing.
View Setup
Agent triggers "Grid View" for sorting slides.
Scaffolding
Agent resets workspace fully (with UI confirm).