Create a sandbox
create_sandboxCreate and start cloud or local coding sandboxes from a Git project, cloud master, or parent sandbox for isolated agent work.
Instructions
Create and start a sandbox: from the open Git project, from a published cloud Master Sandbox (with optional empty: true), or as an isolated child of an existing parent sandbox (parent + inherit). Cloud by default, or local: true on this machine in a Lima VM.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The sandbox's name. Defaults to the project folder's name. A local sandbox's name must be unique on this machine: letters, digits, dot, dash and underscore. | |
| path | No | A folder inside the Git project to upload; relative paths are resolved against the workspace. Defaults to the open workspace. | |
| size | No | Cloud only: sandbox size (defaults to small, or parent size when creating a child). | |
| agent | No | The coding agent to start in the terminal: claude (Claude Code, the default) or codex (Codex). | |
| empty | No | Start with an empty /workspace (does not require a local Git repository when paired with master or parent). | |
| local | No | Create the sandbox on this machine instead of RayTrace's cloud. Use when the user asks for a local sandbox. The first one sets up a Linux VM (several minutes). | |
| github | No | Cloud only: also make the sandbox a clone of the project's GitHub repository (its origin), on a branch its agent may push to. Needs the RayTrace GitHub App connected for the user's organization. | |
| master | No | Cloud only: initialize /opt/env dependencies from a published organization master sandbox (by ID or name). | |
| parent | No | Create a child sandbox from an existing parent sandbox (cloud rtp-... ID or local sandbox name). | |
| connect | No | Open a terminal connected to the new sandbox with a coding agent running in it, once it is ready. Defaults to true. | |
| inherit | No | With parent: comma-separated exact set of scopes to inherit (workspace, env, secrets, auth, or none). Defaults to "workspace,env" (or "env" with empty: true). | |
| env_profile | No | Cloud only: attach an encrypted organization env profile (by ID or name). Values are injected only at command/shell exec time and scrubbed from recorded traces. | |
| github_repo | No | With github: the GitHub repository to connect to instead of the origin, as owner/name. | |
| inherit_git | No | With parent (cloud only): attenuated Git repository access inherited from parent. Defaults to "none". | |
| install_lima | No | With local: download Lima 2.2.1 (open source, about 25-40 MB, no admin rights) when it is not installed. Only after the user agrees. | |
| parent_turn_id | No | With parent: optional parent trace/turn ID to link in lineage metadata. | |
| without_beta_credit | No | Create a regular sandbox, not the user's free beta sandbox. Only after the user agrees, when create_sandbox reported their free beta sandbox expired or already created. |