build_environment_config
Generate a remote sandbox environment configuration with specified sources, network controls, and optional reuse of an existing environment ID.
Instructions
Helper tool to generate a remote sandbox EnvironmentConfig dict.
Args: sources: List of {"type": "repository"|"gcs"|"inline", "source": "url-or-content", "target": "/workspace/path", "content": "..."}. "repository" (git URL) and "gcs" use "source"; "inline" uses "content" instead. "target" is required for all and must be a subdirectory (cannot mount to "/"). network_allowlist: List of {"domain": "api.example.com"|".example.com"|"", "transform": {"Authorization": "Bearer ..."}}. Ignored if network_disabled is True. network_disabled: Block all outbound network traffic (sets network="disabled"). environment_id: Reuse an existing environment's state instead of provisioning fresh.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | No | ||
| environment_id | No | ||
| network_disabled | No | ||
| network_allowlist | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |