Preview what an agent's model would receive

GET /Platform/lab/render-context

Preview what an agent's model would receive.

Free: no turn, no model call, no writes. Assembles the agent's view tree exactly as a turn does (Agent.build_context_view: the Agent's own view including system_prompt, attached workflows with their answered decisions, documents, integrations), each block with the [EntityType:id] header it is placed under, plus the tool surface the graph yields after effective_tool_access and the agent's readiness(). Read-only and repeatable, so it is the instrument for configuration work: run it after every assembly step (attach a workflow copy, answer a decision, edit the Document) and diff the output. Rendered through a touchpoint, the blocks are those of a turn on that touchpoint's channel, its response structure and channel style included; without one, a turn's llm-data is needed to confirm those blocks. The time injection a live conversation adds on top is never rendered.

Two things a config-only reading cannot show and this route does: collected_tools is what the agent's entity graph ACTUALLY yields (an unattached integration or a dead tool name silently drops tools), and filter_patterns_matching_nothing names the explicitly allowed tools with no backing tool.

Query parameters

Returns

RenderContextResponse

Example request

curl -X GET "https://api.hilus.ai/Platform/lab/render-context" \
  -H "Authorization: Bearer $HILUS_API_KEY"