Home / Servers / OpenAI API / create_agent_environment_template
Create an agent environment template
An MCP tool from the OpenAI API server, hosted on mcp.hjlabs.in.
Create an agent environment template Creates reusable environment configuration without returning confidential setup commands or environment values. See reusing a hosted setup. [POST /agents/environments/templates]
Name on the gateway: openai_api__create_agent_environment_template · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
packages | object | Packages to install in the environment. Defaults to empty package lists. |
setup_commands | array | Ordered, confidential setup commands. Command bodies are never returned. |
network | object | Network access policy for the environment. If omitted, the API version… |
desktop | object | Desktop provisioning. Omission or null inherits the template setting, or… |
env | object | Environment variables made available to the agent. |
capability_directories | array | Directories that contain capabilities exposed to the agent. Defaults to an… |
skills | array | Skills referenced by ID or provided as inline ZIP archives. Defaults to an… |
plugins | array | Plugins provided as inline ZIP archives. Defaults to an empty list. |
files | array | Files available before the agent starts. Defaults to an empty list. |
name | string | An optional human-readable display name for the template. |
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_environment_template",
"arguments": {}
}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 an agent environment template tool with packages set to ….