# Get Web Page Snippets

{% @mermaid/diagram content="sequenceDiagram
participant Client
participant Service as WebService
participant Firecrawl as Hybrid Firecrawl
participant LLM as LLM Service
participant WebSocket as WebSocket

```
Client->>Service: POST /web/page/snippets<br/>{query, source, size, snippet_style}

Service->>WebSocket: Emit OPEN_PAGE event
Service->>Firecrawl: scrape(url)
Firecrawl-->>Service: Page Content

Service->>WebSocket: Emit ACTIVITY event
Service->>LLM: Extract snippets
LLM-->>Service: Snippets & Confidence Score

Service->>Service: Create Chunks
Service->>WebSocket: Emit RESPONSE event
Service-->>Client: Return Snippets Response" %}
```
