Home / Servers / OpenAI API / create_agent_session_events
Create agent session input events
An MCP tool from the OpenAI API server, hosted on mcp.hjlabs.in.
Create agent session input events Submits message, cancellation, tool-result, or computer-use approval-response events to a managed agent session. Cancellation can recover a still-open turn whose backend execution has ended by… [POST /agents/sessions/{session_id}/events]
Name on the gateway: openai_api__create_agent_session_events · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
session_id required | string | The ID of the session. |
events required | array | The input events to submit to the session. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "openai_api__create_agent_session_events",
"arguments": {
"session_id": "…",
"events": []
}
}Or connect the OpenAI API server directly, which lists 371 tools including this one:
claude mcp add --transport http hj-openai-api https://mcp.hjlabs.in/mcp/openai-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the create agent session input events tool with session_id set to ….