Google Gemini · Schema
Environment
An execution environment for an agent.
AI AgentsArtificial IntelligenceCode GenerationEmbeddingsGenerative AIImage GenerationLLMMachine LearningMulti-ModalReal-TimeFoundation ModelsAgentsAudio UnderstandingBatch ProcessingDeep ResearchDocument UnderstandingFunction CallingStructured OutputText-to-SpeechVideo GenerationVideo Understanding
Properties
| Name | Type | Description |
|---|---|---|
| networkMode | string | Network egress mode. |
| lastAccessed | string | Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). |
| id | string | Required. Output only. The ID of the environment. |
| created | string | Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). |
| environmentKey | string | Output only. Secret token generated upon environment creation for self_hosted environments. Used by the self-hosted sandbox daemon to authenticate polling and streaming requests. Only returned in the |
| fileCount | string | Output only. The number of files in the environment, output only. |
| mode | string | Output only. The compute lifecycle mode for this environment. |
| sizeBytes | string | Output only. The total size of the environment files in bytes, output only. |
| customConfig | object | Output only. Arbitrary customer-defined JSON configuration passed through to the self-hosted environment poller. Only populated for `self_hosted` environments when configured. |
| networkAllowlist | object | Allow only specific domains. |
| sources | array | Sources to be mounted into the environment. |
| updated | string | Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). |
| status | string | Output only. The status of the environment container. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/google-gemini/json-schema/google-gemini-environment-schema.json",
"title": "Environment",
"description": "An execution environment for an agent.",
"x-generated": "2026-11-11",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/google-gemini-environments-api-openapi.yml#/components/schemas/Environment",
"type": "object",
"properties": {
"networkMode": {
"description": "Network egress mode.",
"enum": [
"NETWORK_MODE_UNSPECIFIED",
"DISABLED"
],
"type": "string"
},
"lastAccessed": {
"readOnly": true,
"description": "Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).",
"type": "string"
},
"id": {
"readOnly": true,
"type": "string",
"description": "Required. Output only. The ID of the environment."
},
"created": {
"type": "string",
"readOnly": true,
"description": "Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)."
},
"environmentKey": {
"readOnly": true,
"description": "Output only. Secret token generated upon environment creation for self_hosted environments. Used by the self-hosted sandbox daemon to authenticate polling and streaming requests. Only returned in the CreateEnvironment response; omitted from subsequent GetEnvironment and ListEnvironments calls.",
"type": "string"
},
"fileCount": {
"readOnly": true,
"description": "Output only. The number of files in the environment, output only.",
"format": "int64",
"type": "string"
},
"mode": {
"readOnly": true,
"description": "Output only. The compute lifecycle mode for this environment.",
"enum": [
"ENVIRONMENT_MODE_UNSPECIFIED",
"ON_DEMAND",
"SELF_HOSTED"
],
"type": "string"
},
"sizeBytes": {
"readOnly": true,
"type": "string",
"description": "Output only. The total size of the environment files in bytes, output only.",
"format": "int64"
},
"customConfig": {
"readOnly": true,
"description": "Output only. Arbitrary customer-defined JSON configuration passed through to the self-hosted environment poller. Only populated for `self_hosted` environments when configured.",
"additionalProperties": {
"description": "Properties of the object."
},
"type": "object"
},
"networkAllowlist": {
"$ref": "#/$defs/EnvironmentNetworkEgressAllowlist",
"description": "Allow only specific domains."
},
"sources": {
"type": "array",
"items": {
"$ref": "#/$defs/Source"
},
"description": "Sources to be mounted into the environment."
},
"updated": {
"readOnly": true,
"type": "string",
"description": "Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)."
},
"status": {
"type": "string",
"enum": [
"STATUS_UNSPECIFIED",
"ACTIVE",
"EXPIRED"
],
"description": "Output only. The status of the environment container.",
"readOnly": true
}
},
"$defs": {
"EgressRule": {
"properties": {
"mode": {
"description": "Network egress mode. Set via the `\"allowlist\": \"disabled\"` short form; must be the only rule in the allowlist and cannot be combined with `domain`, `transform` or `credential`.",
"type": "string",
"enum": [
"NETWORK_MODE_UNSPECIFIED",
"DISABLED"
]
},
"transform": {
"description": "Headers to inject into requests matching this rule. Key: header name (e.g., \"Authorization\"). Value: header value (e.g., \"Bearer your-token\").",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"credential": {
"type": "string",
"description": "Optional. Reference to a server-managed Credential resource by ID."
},
"domain": {
"type": "string",
"description": "Domain to allow outbound requests to. Supports wildcards (e.g. '*.googleapis.com'). Use '*' to allow all domains."
}
},
"type": "object",
"description": "A single domain allowlist rule with optional header injection."
},
"EnvironmentNetworkEgressAllowlist": {
"properties": {
"allowlist": {
"type": "array",
"items": {
"$ref": "#/$defs/EgressRule"
},
"description": "List of allowed domains and their configurations. Set to `\"disabled\"` to block all network egress."
}
},
"description": "Network egress configuration for the environment.",
"type": "object"
},
"Source": {
"description": "A source to be mounted into the environment.",
"type": "object",
"properties": {
"target": {
"type": "string",
"description": "Where the source should appear in the environment."
},
"type": {
"enum": [
"TYPE_UNSPECIFIED",
"GCS",
"INLINE",
"REPOSITORY"
],
"type": "string"
},
"content": {
"type": "string",
"description": "The inline content if `type` is `INLINE`."
},
"source": {
"description": "The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path.",
"type": "string"
},
"encoding": {
"description": "Optional encoding for inline content (e.g. `base64`).",
"type": "string"
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-gemini-environment"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.