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

NameTypeDescription
packagesobjectPackages to install in the environment. Defaults to empty package lists.
setup_commandsarrayOrdered, confidential setup commands. Command bodies are never returned.
networkobjectNetwork access policy for the environment. If omitted, the API version…
desktopobjectDesktop provisioning. Omission or null inherits the template setting, or…
envobjectEnvironment variables made available to the agent.
capability_directoriesarrayDirectories that contain capabilities exposed to the agent. Defaults to an…
skillsarraySkills referenced by ID or provided as inline ZIP archives. Defaults to an…
pluginsarrayPlugins provided as inline ZIP archives. Defaults to an empty list.
filesarrayFiles available before the agent starts. Defaults to an empty list.
namestringAn 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:

call_tool arguments
{
  "name": "openai_api__create_agent_environment_template",
  "arguments": {}
}

Or connect the OpenAI API server directly, which lists 371 tools including this one:

Run in your terminal
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 ….

More from OpenAI API