INNER CODE UNIT · Python
spawn_sandboxes
deeplethe/forkd · sdk/mcp/sandstorm_mcp/server.py:150
def spawn_sandboxes(
template: str | None = None,
snapshot_tag: str | None = None,
n: int = 1,
memory_limit_mib: int | None = None,
start_timeout_secs: float = 60,
) -> list[dict[str, Any]]:
"""Start N sandboxes from a template, or fork them from a snapshot tag.
Waits until each one is running, so it can be used straight away.
Args:
template: Template to start from (see list_templates). Give this or
snapshot_tag, not both.
snapshot_tag: Tag to fork from (see list_snapshots).
n: Number of sandboxes, 1..256.
memory_limit_mib: Memory ceiling for each, overriding the template's.
Leave unset to use the template's.