Perceive Webpage Stream
POST /api/agents/perceive/webpage/stream
Streaming webpage perception — NDJSON events from start → complete / error.
Each line of the response body is a JSON-encoded PerceptionStreamEvent.
Events: start, one chunk per Lagan message, extract_start,
then terminal complete (with the full WebpagePerceptionResponse)
or error. Mirrors the /chat/stream pattern so the UI can observe
client disconnects and abort cleanly.
Request Body required
Section titled “Request Body required ”Request model for comprehensive webpage perception analysis.
Analyzes webpage content to extract entities, relationships, sentiment, and strategic insights using Lagan’s perception engine. Supports configurable analysis depth from surface-level scanning to deep prophetic insights.
Fields:
url: URL of the webpage to analyze (required, must be valid HTTP/HTTPS)depth: Analysis depth level controlling thoroughness and insight depthextract_entities: Whether to perform named entity recognitionanalyze_sentiment: Whether to perform sentiment analysismap_relationships: Whether to map entity relationships
Depth Levels:
surface: Quick scan, basic structure extractionanalytical: Detailed analysis with entity extractionstrategic: In-depth strategic insights and patternsprophetic: Deep analysis with predictive insights
Usage: Used by perception routes to analyze webpage content for knowledge extraction.
Integration:
- PerceptionRoutes: Request validation for /perception/webpage endpoint
- LaganAgent: Web perception tool configuration
- Frontend: Perception analysis request forms
object
URL of the webpage to analyze
Example
https://example.com/articleAnalysis depth level (surface, analytical, strategic, prophetic)
Whether to extract entities from content
Whether to perform sentiment analysis
Whether to map entity relationships
Responses
Section titled “ Responses ”Successful Response
Validation Error