Core Exports
AgentInput.request
When an agent is invoked via the direct HTTP Agent API, the platform auto-injects the raw HTTP request context oninput.request. Useful for reading custom headers, cookies, query params, or path params without re-wrapping the agent in a controller.
input.request is not populated for webhook-triggered invocations (the payload lives in metadata instead), scheduled jobs, or direct SDK calls. Always guard access with optional chaining.
See Core Types → AgentInput for the full field list.
Next Steps
Tools & Connectors
View tools exports
Workflows
View workflow exports